Matthias Clasen
b87dd96a8a
Move some platform sources around
...
gunixcredentialsmessage.h ought to live with other UNIX headers,
and the credentials are moved from dbus-specific to just GIO sources.
Also move gfiledescriptorbased.c to the UNIX sources.
2010-05-09 12:41:02 -04:00
David Zeuthen
c148cafdd1
GDBus: Rework GCredentials type
...
These changes are is related to
https://bugzilla.gnome.org/show_bug.cgi?id=617483
and IRC discussions with danw.
2010-05-09 10:03:56 -04:00
Matthias Clasen
bb7106c5df
Add some conceptual changes
2010-05-09 02:27:09 -04:00
Matthias Clasen
8315eb77d5
Some documentation tweaks
...
Add links to the D-Bus docs in some places, and various
other additions.
2010-05-09 01:44:11 -04:00
Matthias Clasen
7ca2e00054
Doc improvements
...
Make sure all unix-specific apis are marked as such.
2010-05-08 23:28:17 -04:00
Matthias Clasen
e8bc8c6cbf
Document length parameter of g_settings_get/set_strv
...
This parameter was not mentioned in the doc comment, as pointed
out in bug 617767.
2010-05-08 20:14:41 -04:00
Matthias Clasen
9164fd02c9
Document length parameter of g_settings_get/set_strv
...
This parameter was not mentioned in the doc comment, as pointed
out in bug 617767.
2010-05-08 20:10:57 -04:00
Dan Winship
af263a3a10
remove broken useless initialization in socket-client/socket-server
...
https://bugzilla.gnome.org/show_bug.cgi?id=618051
2010-05-07 19:08:13 -04:00
David Zeuthen
f1855c2f77
GDBus: add TODO item about maybe having to rework ::g-properties-changed
2010-05-07 15:02:37 -04:00
David Zeuthen
85c85ae63a
GDBus: add TODO item about the need to rewrite private GDBusAuth* classes
2010-05-07 14:57:20 -04:00
David Zeuthen
5bd876bef0
Add TODO item about wanting G_DBUS_NONCE_TCP_TMPDIR
2010-05-07 14:56:01 -04:00
David Zeuthen
44fd23b649
GDBus: Add more symbols to pltcheck.sh's SKIP variable
...
In particular, add these symbols
g_memdup
g_print
g_random_int
g_propagate_prefixed_e
g_thread_create_full
g_int_hash
g_file_open_tmp
g_thread_self
g_usleep
2010-05-06 17:41:31 -04:00
David Zeuthen
46ce134d51
GDBus: Add new symbols to gio.symbols
2010-05-06 17:31:51 -04:00
David Zeuthen
fb1b4599a0
GDBus: Fix up i18n
2010-05-06 16:34:23 -04:00
David Zeuthen
0fd6498cd8
Add "Since: 2.26" to all new GDBus API
2010-05-06 16:02:08 -04:00
David Zeuthen
c490c14f4e
Set up gtk-doc for GDBus
...
Also move send_credentials() and receive_credentials() to
GUnixConnection. This code might change, discussion is still ongoing
in
https://bugzilla.gnome.org/show_bug.cgi?id=617483 .
2010-05-06 15:31:45 -04:00
David Zeuthen
d0a14469d0
Initial GDBus code-drop from GDBus-standalone repo
...
Things compile and the test-suite passes. Still need to hook up
gio.symbols and docs. There are still a bunch of TODOs left in the
sources that needs to be addressed.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-05-06 14:21:32 -04:00
Vincent Untz
5b4189fc42
Fix binding between writability of key and sensitivity of a widget
...
We were not setting the key correctly, result in usage of invalid keys.
Bug 617788.
2010-05-06 11:15:24 -05:00
Javier Jardón
434a4e1d25
Do not include "glib.h" in gio files
2010-05-06 17:42:09 +02:00
Torsten Schönfeld
f39a49b036
gio: Add a boxed type for GFileAttributeMatcher
...
https://bugzilla.gnome.org/show_bug.cgi?id=616892
2010-05-03 20:13:35 +02:00
Tor Lillqvist
4487b326d7
Fix list of sources in the gio Visual Studio project
...
List the additional sources needed in gio/Makefile.am, not in
gio.vcprojin. Fix broken usage of sort. Filter out Unix-only source
files.
2010-05-03 19:56:46 +03:00
Tor Lillqvist
0f795345d6
Fix misspelled identifier in the Win32 code
2010-05-03 19:24:35 +03:00
Dan Winship
622916b731
g_cancellable_release_fd: allow NULL cancellable
...
Almost all GCancellable methods silently do nothing if passed NULL for
the cancellable. Make g_cancellable_release_fd() do that as well.
2010-05-03 12:08:14 -04:00
Ryan Lortie
644dfbd704
GSettings: fix mixed use of a pointer
...
- used in some places as a move-along-as-we-go pointer
- used in other places as a pointer to the fixed base of an array
Switch all users to the first style to avoid a crasher.
2010-05-02 14:15:33 -05:00
Ryan Lortie
8dddf6499e
GSettingsBackend API/ABI change
...
- add list() virtual method
- add 'default_value' flag to read() call
2010-04-28 14:41:42 -05:00
Dan Winship
9ba690b386
.gitignore updates for gsettings stuff
2010-04-27 17:04:57 -04:00
Dan Winship
5046dfc85d
GSocket: fix garbled error messages on windows
...
socket_strerror() was assuming all "strerror" messages are shorter
than 128 bytes, which is certainly true on Linux, but apparently not
on Windows.
https://bugzilla.gnome.org/show_bug.cgi?id=615494
2010-04-27 09:02:20 -04:00
David Zeuthen
3ceddd74bb
Bug 616877 – Several issues with g_socket_receive_message
...
The messages array was not reallocated correctly because it was using
malloc instead of realloc. Also, if the user requested messages but
none were received we would segfault. Rewrite the code to fix this
and, for better readability, use GPtrArray instead of rolling our own.
Also make the docs mention that the user need to free the returned
GSocketControlMessage objects using g_object_unref().
Clarify that *messages may be set to %NULL if there are no messages
(this will save pointless allocs of arrays).
Finally, the Win32 version didn't set messages to the expected value.
https://bugzilla.gnome.org/show_bug.cgi?id=616877
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-04-26 19:19:17 -04:00
Christian Persch
6f7fb3744b
Add testcases for <range> and <choices>
...
Bug #616102 .
2010-04-25 20:07:26 -05:00
Ryan Lortie
22ce6ed82d
Add range restriction to gschema-compiler
...
Patch from Christian Persch, with minor modifications.
Bug #616102
2010-04-25 20:06:13 -05:00
Ryan Lortie
5e6e7cbadf
GVariant: add bind map for strings to byte arrays
2010-04-25 19:12:14 -05:00
Tor Lillqvist
da306296cf
Can't use stderr as a field name
2010-04-25 17:26:41 +03:00
Matthias Clasen
daa405c191
Rename in more places
2010-04-23 20:05:27 -04:00
Matthias Clasen
ec664445a9
Rename gschema-compile to glib-compile-schemas
...
And clean up the autofoo a bit: use an uppercase variable,
check for pkg-config, check for presence of glib-compile-schemas.
2010-04-23 17:27:26 -04:00
Ryan Lortie
172c229c8f
add missing #endif from last patch
2010-04-23 13:54:02 -04:00
Dan Winship
1504a77655
GSocket: define CMSG_LEN and CMSG_SPACE if the system doesn't
...
https://bugzilla.gnome.org/show_bug.cgi?id=589989
2010-04-23 12:38:33 -04:00
Dan Winship
29f3e3f766
GSocket: add support for timeouts
...
Also add options for testing timeouts to socket test programs
https://bugzilla.gnome.org/show_bug.cgi?id=587898
2010-04-23 12:31:31 -04:00
Dan Winship
2c4a79c810
GSocket: Merge the unix and windows socket sources together
...
And remove the bits that were added to gasynchelper.c to support the
previous unix socket source.
part of https://bugzilla.gnome.org/show_bug.cgi?id=587898
2010-04-23 12:25:56 -04:00
Dan Winship
5b329c506a
gio/tests/socket-client, socket-server: fix for win32
...
The addition of unix socket support broke these on win32
2010-04-23 12:24:30 -04:00
Matthias Clasen
25725345fb
Fix up distcheck
2010-04-22 22:01:19 -04:00
Dan Winship
19d8cc3375
GUnixSocketAddress: handle abstract sockets with non-0-padded names
...
There are apparently two incompatible ways of naming abstract sockets:
pad the sockaddr with 0s and use the entire thing as the name, or else
don't, and just pass a shorter length value to the relevant functions.
We previously only supported the former method. Add support for the
latter.
Also correctly handle "anonymous" unix sockaddrs (eg, the client side
of a connection, or a socketpair() socket), and add unix domain socket
support to the socket-client and socket-server test programs to make
sure this all works.
https://bugzilla.gnome.org/show_bug.cgi?id=615960
2010-04-22 11:54:41 -04:00
Matthias Clasen
f3e04973e7
Rename gsettings-tool to gsettings
...
And make it verb-based.
2010-04-22 01:17:02 -04:00
Javier Jardón
bf0f8ad8ee
[gsettings] Add g_return_*_if_fail() guards in GSettingsBackend
2010-04-22 03:20:17 +02:00
Javier Jardón
0fa791b29d
[gsettings] Add g_return_*_if_fail() guards
...
Reported by Christian Persch here:
https://bugzilla.gnome.org/show_bug.cgi?id=616405
2010-04-22 03:10:42 +02:00
Matthias Clasen
78ed401a51
Add a test for g_settings_get_child
2010-04-21 21:03:53 -04:00
Matthias Clasen
88ff21ee92
Be more careful about memory management
...
This was leading to crashes, e.g. bug 616432.
2010-04-21 18:08:05 -04:00
Matthias Clasen
89b718f7d3
Pedantic terminology fix
...
Elements are not function calls and attributes are not arguments...
2010-04-21 17:45:29 -04:00
Matthias Clasen
585a37f374
Handle NULL string properties in bindings
...
Admittely, we just handle them by failing the conversion...
2010-04-21 14:49:05 -04:00
Dan Winship
3814868b7a
gio.symbols: add two missing G_GNUC_CONSTs
2010-04-21 13:42:15 -04:00
Matthias Clasen
ccf9361490
Handle non-readable/-writable properties when binding
...
And document readability/writability requirements for binding flags.
2010-04-21 12:33:55 -04:00
Matthias Clasen
8a988e8e88
Test binding non-readable/writable properties
2010-04-21 12:31:10 -04:00
Bastien Nocera
e63a1a3d6e
Fix gschema-compile tests for --schema-files changes
2010-04-21 15:04:28 +01:00
Matthias Clasen
1c2aea7854
Add tests for --allow-any-name
2010-04-21 09:50:42 -04:00
Bastien Nocera
0b61a87c29
Allow passing multiple schemas to gschema-compile
...
To make test suites easier to implement
https://bugzilla.gnome.org/show_bug.cgi?id=616312
2010-04-21 14:38:08 +01:00
Matthias Clasen
9708431788
Remove leftover test data
2010-04-21 09:34:57 -04:00
Matthias Clasen
64cc81f769
Add an --allow-any-name option
...
This will make it easier for people to keep their GConf key names
in the transition period.
Conflicts:
gio/gschema-compile.c
2010-04-21 09:33:57 -04:00
Matthias Clasen
c83a976245
Add some more schema compiler tests
2010-04-21 00:43:55 -04:00
Matthias Clasen
564714bc95
Fix type mapping for float in gsettings-schema-convert
...
Bug 616331.
2010-04-20 23:40:22 -04:00
Matthias Clasen
afff087785
Simplify gschema-compile test suite
...
Add --one-schema-file option to gschema-compile to allow easier test
setup. Simplify the test setup.
Bug #616276 .
2010-04-20 23:28:49 -04:00
Matthias Clasen
463203ee0a
Add gettext-domain when required, and allow to specify it on the cmdline
...
Bug 616309
2010-04-20 22:55:15 -04:00
Matthias Clasen
bedf4c3259
Add documentation and translation for gsettings-tool
2010-04-20 22:55:15 -04:00
Matthias Clasen
1dbe06c30a
Add a minimal commandline utility to poke GSettings
2010-04-20 22:55:15 -04:00
Javier Jardón
3569de342e
[gio] Use G_DEFINE_INTERFACE macro
...
Use this macro in gasyncinitable, gconverter, ginitable and
gsocketconnectable
https://bugzilla.gnome.org/show_bug.cgi?id=616245
2010-04-21 02:32:43 +02:00
Tor Lillqvist
3585e64be8
Tweak the generation of the file list in gio.vcproj
...
Visual Studio doesn't like slash as directory separator, so use
backslash. While at it, sort the list of files put in the project file
just for clarity.
2010-04-21 03:22:59 +03:00
Ryan Lortie
8b6d2c1fc1
remove empty initialisers { } for MSVC's sake
2010-04-20 20:14:50 -04:00
Ryan Lortie
a4e3878675
Merge remote branch 'gvdb/master'
2010-04-20 20:13:56 -04:00
Christian Persch
9488d18a87
Fix gsettings mapping for uint64
...
Bug #616295 .
2010-04-20 19:40:26 -04:00
Matthias Clasen
1b61680abb
Flesh out the porting guide some more
2010-04-20 19:40:26 -04:00
Matthias Clasen
3277b77769
Document g_settings_bind_writable
2010-04-20 19:40:26 -04:00
Richard Hughes
9717833e82
Don't crash gsettings-schema-convert for GConf schemas that contain empty elements
...
This can be observed in gnome-power-manager with one of the entries that
contains <long></long>
2010-04-20 22:30:01 +01:00
Ryan Lortie
f82839b8fe
gschema-compile: output to srcdir by default
...
If the target directory is not explicitly set then output to the source
directory. Closes bug #616311 reported by Bastien Nocera.
2010-04-20 17:27:17 -04:00
Ryan Lortie
f5990c1aef
GSettings: bind to writablity of a key
2010-04-20 12:30:40 -04:00
Richard Hughes
890a842b26
Fix up the gtk-doc comment for the GSettings::changed signal
2010-04-20 16:14:11 +01:00
Ryan Lortie
3c54cc074d
gschema-compile: return quickly on parse error
...
Suggested by Christian Persch in #616102
2010-04-20 10:37:33 -04:00
Matthias Clasen
3b9de5f10a
Don't forget to install and distribute gsettings-schema-convert
2010-04-19 19:09:15 -04:00
Matthias Clasen
7d330078e7
Don't forget to install and distribute gsettings-schema-convert
2010-04-19 18:26:41 -04:00
Matthias Clasen
cd9b8b563f
2.25.0
2010-04-19 17:30:42 -04:00
Christian Persch
27d2dbacd4
Use g_set_error_literal where appropriate
2010-04-19 14:18:59 -04:00
Matthias Clasen
40869e9544
Install a dtd in /usr/share/glib-2.0/schemas/gschema.dtd
2010-04-19 14:04:42 -04:00
Matthias Clasen
2d38da0746
Remove misnamed files
2010-04-19 13:28:00 -04:00
Matthias Clasen
0e48b0638d
Some tests for gschema-compile
...
Mostly making sure that we produce reasonable error messages for
typical mistakes.
2010-04-19 13:28:00 -04:00
Javier Jardón
a64625a134
Little fix in gio/test/Makefile.am
...
This was introduced in
commit 4a605693fc
2010-04-19 17:59:23 +02:00
Matthias Clasen
32477d4fbf
Another shadowed variable fix
...
See bug 616154.
2010-04-19 11:49:12 -04:00
Matthias Clasen
4a605693fc
Don't segfault when <default> is missing
...
Also add a framework for schema compiler tests.
Fixes bug 616086.
2010-04-19 11:49:12 -04:00
David Zeuthen
ccbafd0f14
Bug 615111 – GAsyncInitable's default implementation is broken
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-04-19 10:43:48 -04:00
Ryan Lortie
40fdc929f8
Don't write out zero-byte sections in builder
...
This and the previous issue caught by Christian Persch in bug #616156
2010-04-19 10:39:54 -04:00
Ryan Lortie
646dc7de87
Whitespace fixups
2010-04-19 10:39:54 -04:00
Ryan Lortie
33104067d4
Fix logic error for missing options in reader
2010-04-19 10:39:54 -04:00
Matthias Clasen
3f354af402
Handle int64 and double types correctly
2010-04-19 10:34:42 -04:00
Matthias Clasen
a072c1fc29
Fix up some typos in the new tests
2010-04-19 10:34:22 -04:00
Christian Persch
230038f684
Add testcase for g_settings_bind with [u]int64 properties
...
And use different values for the doubles test.
All of these fail currently since g_settings_bind default mapping
truncate to glong (eek!).
Bug #616119
2010-04-19 10:00:03 -04:00
Christian Persch
dd98785e85
Rename shadowed variables
...
Bug #616154 .
2010-04-19 09:46:32 -04:00
Matthias Clasen
69bd033e11
Call setlocale initially
...
That seems to be required to make bindtextdomain work in the
l10n tests. See bug 616152.
2010-04-19 09:31:31 -04:00
Tor Lillqvist
4523b2b9cd
Bypass l10n tests for now on Windows
2010-04-19 16:14:45 +03:00
Tor Lillqvist
a96360ad68
Avoid non-portable <glob.h> API
...
And thus we can build gschema-compile on all platforms, and run it in
tests.
2010-04-19 15:48:30 +03:00
Matthias Clasen
c279b5b999
Add a schema convertion script
2010-04-19 08:04:57 -04:00
Tor Lillqvist
df8800e59a
Portability improvements
...
Gschema-compile uses glob which is available on Unix only. Thus can't
run the gschema-compile test except on Unix either.
To avoid an Automake error, comment out the SOURCES and LDADD of
unix-streams which for some reason has been commented out from
TEST_PROGS.
Can't use a Makefile.am target called foo_PROGRAMS for random files
that aren't actually programs, as Automake assumes EXEEXT should be
appended to the file names.
2010-04-19 12:28:44 +03:00
Tor Lillqvist
9af8b83211
Add GWin32InputStream and GWin32OutputStream classes
...
Correspond to GUnixInputStream and GUnixOutputStream. No true async
support though. But that is how the Win32 API is, for files not
explicitly opened for so-called overlapped IO.
The API to create these streams takes Win32 HANDLEs. Not file
descriptors, because file descriptors are specific to the C library
used. The user code and GLib might be using different C libraries.
Also add a test program for the new classes, and a gio-windows-2.0.pc
file.
2010-04-19 11:54:56 +03:00
Matthias Clasen
32de7d6905
Fix up docs for backend setup functions
2010-04-18 15:57:11 -04:00
Matthias Clasen
fd8cdb83e1
Refer to gio-querymodules in the extension point docs
2010-04-18 15:55:14 -04:00
Matthias Clasen
e0850b56e2
Correct filename extension in help output.
2010-04-18 15:37:55 -04:00
Matthias Clasen
626d8ac9e1
More distcheck fixes
2010-04-17 21:31:30 -04:00
Matthias Clasen
187883dc58
add a keyfile test
2010-04-17 21:20:33 -04:00
Matthias Clasen
f07613997c
More distcheck fix attempts
2010-04-17 20:54:53 -04:00
Matthias Clasen
3db0f554e4
Some build fixes
2010-04-17 16:57:28 -04:00
Matthias Clasen
137cee425f
Correct the sense of an assertion
2010-04-17 16:48:10 -04:00
Matthias Clasen
d2b837df5d
Document the tests
...
Add a short note for each test that explains what it tries to test.
2010-04-17 16:13:22 -04:00
Ryan Lortie
118ae129bc
GDelayedSettingsBackend: another mandatory fixup
...
- emit the "has-unapplied" property notify if dropping the last key
from the changeset due to a mandatory key
2010-04-17 11:58:52 -04:00
Ryan Lortie
e06e441ac2
GSettings delayed: fix handling of mandatory keys
...
- if a key becomes mandatory, drop it from the changeset
- if we still get failing writes (ie: because of a race) then drop the
entire changeset and signal that it happened
2010-04-17 11:49:22 -04:00
Ryan Lortie
eaaa4d14aa
add backend setup APIs
2010-04-17 10:26:51 -04:00
Matthias Clasen
c8a7bb6ccd
Merge GSettings tests
2010-04-17 01:48:05 -04:00
Ryan Lortie
265ca3db9d
let binding functions return a floating GVariant
2010-04-17 01:27:00 -04:00
Ryan Lortie
c8e264b6d0
add GMemorySettingsBackend
2010-04-17 01:26:34 -04:00
Ryan Lortie
77ab3c28b9
add pltcheck.sh exception for GChecksum
2010-04-17 01:02:05 -04:00
Ryan Lortie
79bc511d95
XML schemas are now *.gschema.xml
2010-04-17 00:40:09 -04:00
Matthias Clasen
16637a1687
Document G_SETTINGS_BIND_GET_NO_CHANGES
2010-04-17 00:16:01 -04:00
Matthias Clasen
a2716ad020
Merge the keyfile settings backend.
2010-04-16 23:57:26 -04:00
Ryan Lortie
a187634b29
merge GSettings
2010-04-16 23:23:40 -04:00
Ryan Lortie
43a72ce1be
GSettingsSchema: add call to get list of keys
2010-04-16 23:21:08 -04:00
Matthias Clasen
a922596e54
Some doc tweaks
2010-04-16 19:30:58 -04:00
Ryan Lortie
d4a4a4ccdb
GSettings: import delayed backend to master
2010-04-16 12:02:44 -04:00
Ryan Lortie
04c1eadfff
GSettings: more PLT/visibility fixups
2010-04-16 12:02:29 -04:00
Ryan Lortie
149224664f
gio.symbols: remove pointless whitespace
2010-04-16 12:01:56 -04:00
Ryan Lortie
2474ebf15e
GSettingsBackend: fix type in g_return_val_if_fail
2010-04-16 12:01:56 -04:00
Ryan Lortie
69801f8dc8
Merge remote branch 'gvdb/master'
2010-04-16 11:05:22 -04:00
Ryan Lortie
897bd9f384
GSettings: merge the schema compiler
2010-04-15 23:35:49 -04:00
Ryan Lortie
2bc8157735
merge GSettingsSchema
2010-04-15 22:30:11 -04:00
Ryan Lortie
45a1c41e8c
Merge remote branch 'gvdb/master'
2010-04-15 22:14:39 -04:00
Ryan Lortie
defd75fbc5
GSettingsBackend: fix NULL vs "" context issues
2010-04-15 18:30:06 -04:00
Ryan Lortie
3e36ee3426
add 'null' GSettings backend
2010-04-15 18:22:14 -04:00
Ryan Lortie
c2675af4d7
GSettings: Modify backend API
2010-04-15 18:22:04 -04:00
Ryan Lortie
18ba085d0a
merge GSettingsBackend
2010-04-15 14:59:41 -04:00
Tor Lillqvist
1229281d95
Define a public documented type for the struct stat used by g_stat()
...
Define GStatBuf as the type used by g_stat() and g_lstat(). Replaces
the non-public struct tag _g_stat_struct. Mostly relevant for Windows
where there are several variants of stat-style structs. On POSIX, is
just another name for struct stat.
Actually, also on many POSIX systems there are in fact several
variants of struct stat and corresponding stat() and lstat()
functions, but as g_stat and g_lstat are normally on POSIX just macros
that expand to stat and lstat, this should not cause a problem. It's
only when it's the actual g_stat() or g_lstat() implementation inside
GLib that gets called that one needs to be sure the passed struct is
the same as what GLib expects.)
2010-03-30 19:22:39 +03:00
Benjamin Otte
e7763678b5
Fix race in g_cancellable_cancel()
...
We need to check priv->cancelled after taking the lock. Previously we
only checked it just before taking the lock, which left a small chance
for a race.
2010-03-29 12:57:35 -05:00
Benjamin Otte
5527a2ac2c
Remove unneccessary variable from g_cancellable_cancel()
...
The variable makes a complicated function even more complicated.
2010-03-29 12:57:35 -05:00
Matthias Clasen
7c8a108165
Fix a typo
2010-03-26 11:05:02 -04:00
Matthias Clasen
78b764f325
More doc fixups
2010-03-26 10:19:57 -04:00
Matthias Clasen
c4ea7d58f7
Small doc addition
2010-03-26 09:30:25 -04:00
Matthias Clasen
6e77ee0971
Correct the error handling in splice_stream_with_progress
...
We need to get out of both loops, so a simple 'break' doesn't cut it.
Bugs 613748 and 613923
2010-03-26 09:03:22 -04:00
Ryan Lortie
fd448dd7ce
Add doc note about read_until() inconsistency.
...
See bug 584284 for more information.
2010-03-23 10:01:53 -05:00
Ryan Lortie
ace9a25fb3
Bug 613601 - buglet in dup_close_on_exec_fd()
...
Fix copy/paste error and 'or' FD_CLOEXEC into the existing flags instead
of just setting it outright.
2010-03-22 12:03:24 -05:00
Tor Lillqvist
226cc663e4
Avoid much of duplication in lists of source files
...
Don't keep the lists of source files for libglib, libgobject and
libgio in the VS project files in addition to the canonical location,
the corresponding Makefile.am files.
Instead, generate the corresponding .vcproj files at make dist time
using the C preprocessor, from template files called .vcprojin. We
still list explicitly in the .vcprojin files some of the
Windows-specific source files, and the sources files of gnulib and
pcre.
2010-03-21 16:15:02 +02:00
Tor Lillqvist
504b8b8f01
Avoid struct stat issues with MSVC
2010-03-21 14:50:45 +02:00
Colin Walters
f552689058
[GDesktopAppInfo] New function g_desktop_app_info_get_filename
...
This allows access to the full file path, where possible.
https://bugzilla.gnome.org/show_bug.cgi?id=612832
2010-03-14 15:45:46 -04:00
Thomas Kristensen
1be8ad3514
Close the socket event in finalizer instead of in close method
...
There might be a GSource attached to a GMainContext, about to be removed by a
pending cancellation. Deleting the handle too early will trigger a g_warning in
the "select()" call in GMainContext. Attached patch fixes this by deferring
destruction of WSAEVENT object until GSocket's finalize().
Patch from bug #612702 .
Signed-off-by: Tor Lillqvist <tml@iki.fi>
2010-03-14 11:51:24 +02:00
Tor Lillqvist
a57522deae
The SO_KEEPALIVE value seems to actually be a char on Windows
...
Do still use a BOOL variable, but initialize it to FALSE before the
getsockopt(), and drop the assertion on Windows. Should fix bug
2010-03-12 10:45:52 +02:00
Alexander Larsson
8cd5c94f42
Add pregenerated ids for TRASH_ORIG_PATH and TRASH_DELETION_DATE
...
This fixes the build for me
2010-03-08 12:03:40 +01:00
Matthias Clasen
826abbefce
Add defines for trash::orig-path and trash::deletion-date
...
See bug 612107.
2010-03-08 00:36:00 -05:00
Matthias Clasen
0a51b58e07
Minor doc clarification
...
Mention g_realloc() as a possible function to use with
g_memory_output_stream_new(). Bug 612041.
2010-03-08 00:12:33 -05:00
Matthias Clasen
9dd6c60fbf
Plug a memleak in g_io_modules_scan_all_in_directory
...
...and at the same time, fix a malloc<>g_free mismatch.
Patch by Caolan McNamara, bug 611897
2010-03-07 17:44:23 -05:00
Jonh Wendell
7504095de0
Mark a string for translation
2010-03-04 17:03:13 -03:00
Christian Dywan
c423c3a9c9
Add licence headers to gnativevolumemonitor.c/h
...
Fixes bug #609531
2010-03-04 11:02:31 +01:00
Felix Riemann
373f3d8b52
Fix API docs for GZlibCompressor and GZlibDecompressor
...
Corrects the general descriptions and makes the signals and implemented
interfaces appear.
2010-03-03 17:44:28 +01:00
Dan Winship
9a886135c8
GResolver: fix Windows 2000 workaround
...
Move the <wspiapi.h> include from gwin32resolver.c to
gnetworkingprivate.h, since gthreadedresolver.c needs it too.
https://bugzilla.gnome.org/show_bug.cgi?id=611696
2010-03-03 08:35:32 -05:00
Paolo Borelli
277b9717da
Remove utf8inputstream leftovers in a few other places
2010-03-01 10:24:43 +01:00
Alexander Larsson
2bfddf162e
Remove GUtf8InputStream for now
...
It turns out that the way this worked did not work out for the current
main usecase (gedit) due to issues with how this is best integrated
with GtkTextView. So, in order to not have to support an unused non-ideal
API forever we remove this before its been in a stable release.
The basic feature seems to have some utility though, so we hope for it
to eventually return in a better form.
2010-03-01 09:56:02 +01:00
Saleem Abdulrasool
a495a2122d
include gio.h, not giotypes.h
...
Including giotypes.h in gfiledescriptor.h causes a compilation failure for users
of the header as giotypes.h may not be included directly.
2010-02-23 16:23:07 -08:00
Emilio Pozuelo Monfort
a7cc500d38
Test for unexisting files in $TMP and not in $HOME
...
Some buildd environments have an unwritable $HOME, which makes the
test that looks for an unexisting file there fail. Use $TMP instead,
which should be more reliable.
https://bugzilla.gnome.org/show_bug.cgi?id=610860
2010-02-23 18:37:39 +01:00
Emilio Pozuelo Monfort
202d7d37d6
Don't fail a couple of tests when running as root
...
root can access and write to a directory when it doesn't have
exec and write permissions respectively. So expect the tests that
check that to succeed rather than to fail when running as root.
https://bugzilla.gnome.org/show_bug.cgi?id=552912
2010-02-22 19:54:38 +01:00
Alexander Larsson
4535683b3f
Keep metadata when files are renamed and trashed
...
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=609813
2010-02-22 12:37:16 +01:00
Matthias Clasen
3983418c25
Fix up GFileDescriptorBased docs
2010-02-21 19:55:02 -05:00
Matthias Clasen
2de84d6594
Fix up make check
2010-02-21 19:42:37 -05:00
Matthias Clasen
21080a33e1
Add missign single include guards
...
Reported in bug 609530. patch by Christian Dywan.
2010-02-21 16:12:35 -05:00
Matthias Clasen
6c1a914d51
Fix build on Solaris 8
...
System header fun. See bug 610131.
2010-02-21 15:55:10 -05:00
Christian Kellner
48f74cab39
Move event support in the inotify backend
...
This adds support for G_FILE_MONITOR_SEND_MOVED events when requested by
the user to the inotify backend. Last part to fix bug #547890 .
Based heavily on a patch by Martyn Russel <martyn@lanedo.com>.
2010-02-18 15:50:26 +01:00
Christian Kellner
239af97712
GLocalFileMonitor: Support for GFileMonitorFlags
...
Evaluate and remember GFileMonitorFlags. This is a part of move
event support for fs-monitoring (bug #547890 ).
2010-02-18 15:50:26 +01:00
Christian Kellner
41956b2376
Move event support for fs-monitoring: Event & flag
...
Add a G_FILE_MONITOR_SEND_MOVED flag indicating the API user
wants to receive the new G_FILE_MOINOTR_EVENT_MOVED event
instead of single CREATED/DELETED events.
First part of bug #547890 .
2010-02-18 15:50:26 +01:00
Christian Kellner
bb4f63d639
GFile: Support for splice(2) in copy_fallback
...
The (linux specific) system call splice can be
used to transfer data between file descriptors
whitout copying them into user space.
See bug #604086 for additional details.
2010-02-15 13:25:50 +01:00
Christian Kellner
28f90db1ed
GLocalFileOutputStream: Implement GFileDescriptorBased
...
Also convert GLocalFileIOStream to use the new interface to obtain
the file descriptor.
2010-02-15 13:25:50 +01:00
Christian Kellner
670f6210ce
GLocalFileInputStream: Implement GFileDescriptorBased
2010-02-15 13:25:50 +01:00
Christian Kellner
4536a4adbc
GFileDescriptorBased: New interface
...
New interface for file descriptor based io object. The interface
is only exported on unix based systems. See bug 604086.
2010-02-15 13:25:50 +01:00
Alexander Larsson
b37da7134b
Set result_uncertain in win32 g_content_type_guess implementation
...
Fixes bug #609143
2010-02-15 10:13:10 +01:00
Tim-Philipp Müller
813d0d17a6
Don't leak filename in g_io_modules_scan_all_in_directory
...
https://bugzilla.gnome.org/show_bug.cgi?id=608159
2010-02-06 13:37:04 +01:00
Tor Lillqvist
021643cda4
Clarify use of struct stat on Windows
2010-02-04 19:59:05 +02:00
Tor Lillqvist
3f3c163aa2
Put a version info resource also in the gio DLL
...
Also, distribute gio/gio.rc(.in).
2010-02-04 00:37:13 +02:00
River Tarnell
2b121c02ef
properly guard the includes
...
Fixes: Bug 604967 - 2.22.3 libasyncns build fails on HP-UX 11.11
* gio/libasyncns/asyncns.c: properly guard the includes of sys/select.h
and sys/time.h
2010-02-03 17:31:02 +01:00
Ryan Lortie
f411e23043
GIO: Remove trailing "." from Since: tags in docs
...
Typing "Since: 2.22." results in the creation of an api-index-2.22..xml
file (ie: the last '.' is taken to be part of the version number).
2010-01-30 14:06:12 -05:00
Christian Dywan
7d6af08777
Add gtk-doc comments with Since tags to GMemoryOutputStream properties
2010-01-26 20:46:53 +01:00
Matthias Clasen
bc4f3904f2
Another few failing tests disabled
2010-01-25 12:43:10 -05:00
Matthias Clasen
d819c8e486
Typo fixes
2010-01-24 20:50:51 -05:00
Ryan Lortie
e71dcb204e
gio: .gitignore gio-querymodules
2010-01-23 01:07:46 -05:00
Javier Jardón
a6ab4b7872
Upgrade to version 0.8 of libasyncns
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=602240
2010-01-13 12:02:39 -05:00
Alexander Larsson
94b8613b5f
Use unconditional thread calls in gio and gobject
...
If threads are available we always enable threads in gobject, which
means all gio/gobject code can enable the unconditional thread calls.
This is a minor optimization since we avoid a bunch of unnecessary
is-threads-enabled checks.
https://bugzilla.gnome.org/show_bug.cgi?id=606775
2010-01-12 21:37:50 +01:00
Alexander Larsson
74ad124cfb
Implement lazy loading of fam plugin
2010-01-12 16:34:23 +01:00
Alexander Larsson
57b771235e
Add gio-querymodule program
...
This can be used to update the giomodule.cache file in directories with
giomodules in order to support lazy module loading.
2010-01-12 16:34:18 +01:00
Alexander Larsson
682b3da99b
Use the new lazy loading of modules for gio modules
2010-01-12 16:31:29 +01:00
Alexander Larsson
488bede191
Add support for lazy loading of giomodules
...
Adds an optional query method to giomodules which should return all
possible extension points the module may implement.
Then we add a new call g_io_modules_scan_all_in_directory() similar to
g_io_modules_load_all_in_directory() that doesn't return all loaded
modules, thus allowing lazy loading.
In g_io_modules_scan_all_in_directory we look for an optional
giomodule.cache file and use the information in that to avoid
loading modules until they are needed for an extension point.
2010-01-12 16:31:29 +01:00
Ignacio Casal Quinteiro
6aa1aef556
Flush gcharsetconverter when needed.
...
This patch fixes bug #605686 .
2010-01-12 12:56:54 +01:00
Matthias Clasen
759fbac7b7
Add properties to GMemoryOutputStream
...
This helps bindings. Patch by Krzysztof Kosiński. See bug 605733.
2010-01-06 17:37:11 -05:00
Matthias Clasen
f2d8f6287d
Fix the filename roundtrip check
...
The check was always failing because the code was comparing
the wrong strings. Reported in bug 605977.
2010-01-06 13:27:19 -05:00
Ryan Lortie
baf20e0984
GUnixFDMessage: fix a small typo in an extra check
...
In the deserialise function, GUnixFDMessage was comparing 'level' to
both SOL_SOCKET and SCM_RIGHTS. It is correct to compare 'type' to
SCM_RIGHTS. The code passed tests only because:
1) it's a "should always be OK" double-check
2) SOL_SOCKET and SCM_RIGHTS, by chance, both have the value '1' on
Linux systems.
2010-01-05 18:52:33 -05:00
Matthias Clasen
b00c6d7fb5
Fix a memleak
...
An early exit in expand_application_parameters forgot to free
a GString. Reported by Steve Grubb.
2010-01-05 18:18:55 -05:00
Matthias Clasen
6cee86a3ef
Fix an off-by-one error
...
Reported by Steve Grubb.
2010-01-05 18:16:37 -05:00
Matthias Clasen
a91514ba19
Document that various functions ref GSimpleAsyncResult
...
Patch by Will Thompson, see bug 602417.
2010-01-02 19:53:02 -05:00
Matthias Clasen
f58fa69343
Document that _finish() must be called at most once.
...
The patch was provided by Will Thompson in bug 602417.
2010-01-02 19:53:02 -05:00
Matthias Clasen
74af99b860
Fix a typo
...
...and some whitespace fixes. Pointed out by Will Thompson in
bug 602417.
2010-01-02 19:53:02 -05:00
Matthias Clasen
ab799115de
Don't return anything from a void function
...
Sun C doesn't like it. Reported in bug 604824.
2010-01-02 19:17:37 -05:00
Paolo Borelli
32f79f55ef
Bug 604457 - gutf8inputstream.c: increasing unknown size pointer
2009-12-31 12:42:41 +01:00
Dan Winship
f74c0e257f
update .gitignores
2009-12-18 12:27:36 +01:00
Dan Winship
28d91b5bb6
Fix UnixWare build by not using "sa_len" as a variable name
...
https://bugzilla.gnome.org/show_bug.cgi?id=604875
2009-12-18 10:26:09 +01:00