Ryan Lortie [Thu, 24 Jun 2010 04:41:05 +0000 (00:41 -0400)]
Ignore more glib test cases
Ryan Lortie [Thu, 24 Jun 2010 04:36:42 +0000 (00:36 -0400)]
fix leaks in the GSettings test case
Ryan Lortie [Thu, 24 Jun 2010 04:35:10 +0000 (00:35 -0400)]
GChecksum: accept NULL pointer with length 0
Several GChecksum functions were incorrectly aborting when passed a NULL
data pointer, even if the length parameter was equal to zero.
Ryan Lortie [Thu, 24 Jun 2010 04:38:01 +0000 (00:38 -0400)]
GSettings "delayed": don't leak unapplied keys
GDelayedSettingsBackend was leaking the GTree holding the list of
unapplied keys on finalize.
Matthias Clasen [Thu, 24 Jun 2010 02:32:35 +0000 (22:32 -0400)]
Deprecate some rarely-used APIS
GRelation and GCompletion are almost never used, and not very actively
maintained. Mark them as deprecated to make this clear. Bug #551271.
Christian Dywan [Fri, 18 Jun 2010 14:14:27 +0000 (16:14 +0200)]
Introduce G_PARAM_DEPRECATED and G_ENABLE_DIAGNOSTIC
See https://bugzilla.gnome.org/show_bug.cgi?id=601686
Emmanuele Bassi [Mon, 21 Jun 2010 11:26:42 +0000 (12:26 +0100)]
binding: Add SYNC_CREATE to the flags
When creating a binding between two object properties we might want to
automatically synchronize the two values at the moment of the binding
creation, instead of waiting for the next change.
The G_BINDING_SYNC_CREATE flag does exactly what it says on the tin.
https://bugzilla.gnome.org/show_bug.cgi?id=622281
Ryan Lortie [Wed, 23 Jun 2010 14:12:14 +0000 (10:12 -0400)]
neutralise pltcheck.sh
Matthias Clasen [Wed, 23 Jun 2010 13:03:51 +0000 (09:03 -0400)]
GIO doc cleanups
Matthias Clasen [Wed, 23 Jun 2010 11:32:24 +0000 (07:32 -0400)]
Document g_cclosure_marshal_VOID__VARIANT
Matthias Clasen [Wed, 23 Jun 2010 11:22:49 +0000 (07:22 -0400)]
Ignore gatomicarray.h
Otherwise gtk-doc picks up declarations from that header and is
disappointed when they are not documented.
Matthias Clasen [Wed, 23 Jun 2010 11:21:50 +0000 (07:21 -0400)]
silence gtk-doc
Add g_error_get_type to a private section in gobject-sections.txt
so gtk-doc doesn't complain about it.
Matthias Clasen [Wed, 23 Jun 2010 04:20:11 +0000 (00:20 -0400)]
Add some more unicode property tests
Matthias Clasen [Wed, 23 Jun 2010 03:39:51 +0000 (23:39 -0400)]
Move node tests to the test framework
Matthias Clasen [Wed, 23 Jun 2010 02:25:02 +0000 (22:25 -0400)]
Some more hash, utils and checksum tests
Matthias Clasen [Wed, 23 Jun 2010 02:24:29 +0000 (22:24 -0400)]
Move node test to the test framework
Matthias Clasen [Tue, 22 Jun 2010 23:50:35 +0000 (19:50 -0400)]
Move date tests to the test framework
Matthias Clasen [Tue, 22 Jun 2010 21:42:30 +0000 (17:42 -0400)]
Add an index for 2.26 api additions
Milan Bouchet-Valat [Wed, 23 Jun 2010 10:17:29 +0000 (12:17 +0200)]
Improve documentation for g_strcmp0()
Be more explicit about the handling of two NULL pointers.
https://bugzilla.gnome.org/show_bug.cgi?id=622480
David Zeuthen [Tue, 22 Jun 2010 21:48:35 +0000 (17:48 -0400)]
GDBusProxy: Don't warn when calling methods on other interfaces
If we know the expected interface (e.g. :g-interface-info is set),
then we always warned when calling a method on a different
interface. Don't do that, there's no way the expected interface can
know anything about this method.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Dan Winship [Tue, 22 Jun 2010 19:31:55 +0000 (15:31 -0400)]
gio/tests/testapps: Fix source refcounting
Either child_watch_source or timeout_source will already have been
destroyed after we finish the loop, and it's not safe to call
g_source_destroy() on it a second time unless we're still holding a
ref on it.
Dan Winship [Fri, 23 Apr 2010 12:47:18 +0000 (08:47 -0400)]
GSocketConnection: don't close the socket if it's still reffed
When disposing a GSocketConnection, don't explicitly close the
underlying GSocket. The GSocket will close itself if it gets
destroyed, and if it doesn't get destroyed, that presumably means the
app still wants to use it. Eg, this lets you use GSocketClient to
create a GSocketConnection, and then take the GSocket and destroy the
GSocketConnection.
https://bugzilla.gnome.org/show_bug.cgi?id=616855
Dan Winship [Fri, 23 Apr 2010 12:21:41 +0000 (08:21 -0400)]
GSocketInput/OutputStream: fix non-blocking on Windows
The GSocket docs point out that g_socket_send/g_socket_receive may
return G_IO_ERROR_WOULD_BLOCK even if g_socket_condition_check claimed
that they wouldn't. Fix the socket streams to check for that.
https://bugzilla.gnome.org/show_bug.cgi?id=603309
David Zeuthen [Tue, 22 Jun 2010 16:12:16 +0000 (12:12 -0400)]
GDBus: update padding
Add lots of padding for public class structures. Notably, we seemed to
lack any padding whatsoever in the GDBusMessageClass struct (spotted
by Dan Winship). Also switch to using
gpointer padding[N];
instead of
void (*_g_reserved1) (void);
...
void (*_g_reservedN) (void);
Signed-off-by: David Zeuthen <davidz@redhat.com>
Matthias Clasen [Tue, 22 Jun 2010 12:24:30 +0000 (08:24 -0400)]
Improve g_application_new documentation
Patch by Saleem Abdulrasool, bug 622154.
Ryan Lortie [Tue, 22 Jun 2010 12:09:27 +0000 (08:09 -0400)]
Add single include guards to gvariant[type].h
Tor Lillqvist [Tue, 22 Jun 2010 09:41:01 +0000 (12:41 +0300)]
Make the protocol.c test program compile on Windows
Note that it does not actually work, though. Maybe because
g_io_channel_set_flags() is not implemented for file descriptor based
GIOChannels on Windows.
Tor Lillqvist [Tue, 22 Jun 2010 09:13:21 +0000 (12:13 +0300)]
Fix build with the Microsoft compiler
Correct a few gccisms and C99isms. Ensure the Windows-specific gio
source files are listed in the generated gio VS project file.
Tor Lillqvist [Tue, 22 Jun 2010 09:10:34 +0000 (12:10 +0300)]
Bypass a few functions not used on Windows when compiling for Windows
Matthias Clasen [Tue, 22 Jun 2010 03:07:46 +0000 (23:07 -0400)]
Add a test for g_strip_prefix
Matthias Clasen [Tue, 22 Jun 2010 03:06:17 +0000 (23:06 -0400)]
Move hash tests to the test framework
Matthias Clasen [Tue, 22 Jun 2010 02:25:28 +0000 (22:25 -0400)]
Some more tests
Matthias Clasen [Tue, 22 Jun 2010 01:22:09 +0000 (21:22 -0400)]
Move checksum tests to the test framework
Matthias Clasen [Tue, 22 Jun 2010 00:07:26 +0000 (20:07 -0400)]
Add some more Unicode tests
David Zeuthen [Mon, 21 Jun 2010 20:08:53 +0000 (16:08 -0400)]
Bug 621945 – Filter outgoing messages in GDBusConnection
This patch breaks some rarely-used public API (only known user is
dconf).
This patch is based on work from Peng Huang <shawn.p.huang@gmail.com>.
See https://bugzilla.gnome.org/show_bug.cgi?id=621945
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Mon, 21 Jun 2010 18:01:50 +0000 (14:01 -0400)]
gobject docs: ignore some sgml files
Ryan Lortie [Mon, 21 Jun 2010 17:57:54 +0000 (13:57 -0400)]
.gitignore the moved tests
Ryan Lortie [Mon, 21 Jun 2010 17:55:28 +0000 (13:55 -0400)]
Use -Bsymbolic-functions, drop g*alias PLT hackery
This is a minimal patch-out of the galias functionality. We will do a
release like this so that we can easily back it out if there are
reported problems.
A more substantial cleanup (mostly removing #includes from every file)
will follow if there are no issues.
Ryan Lortie [Mon, 21 Jun 2010 17:25:51 +0000 (13:25 -0400)]
distcheck fix
Ryan Lortie [Mon, 21 Jun 2010 17:25:44 +0000 (13:25 -0400)]
Add check for -Bsymbolic-functions linker flag
Ryan Lortie [Mon, 21 Jun 2010 15:30:26 +0000 (11:30 -0400)]
Remove gsettings-schema-convert tool
Having this tool in GLib is a bad idea for a number of reasons:
- experience has shown that the simple file format was a bad idea
- the tool is currently implemented with a hack that would require a
dependency inversion to solve (the tool needs to depend on Python
GVariant bindings)
- the tool itself is unmaintained
It will be moved to the GConf git repository so people can continue to
use it for the purpose of converting GConf schemas.
Javier Jardón [Mon, 21 Jun 2010 15:28:15 +0000 (17:28 +0200)]
[docs] Fix typo
Sven Herzberg [Tue, 20 Apr 2010 13:01:17 +0000 (15:01 +0200)]
don't treat debug/info/message as fatal messages by default
* glib/gtestutils.c: don't treat non-fatal messages as errors
* glib/tests/.gitignore: silence
* glib/tests/Makefile.am: updated
* glib/tests/protocol.c: add a test for the message treatment
Matthias Clasen [Mon, 21 Jun 2010 04:00:51 +0000 (00:00 -0400)]
Add a test for g_unichar_validate
Matthias Clasen [Mon, 21 Jun 2010 03:46:01 +0000 (23:46 -0400)]
Test inplace decoding
Matthias Clasen [Mon, 21 Jun 2010 03:35:31 +0000 (23:35 -0400)]
Some more utf8 tests
Matthias Clasen [Mon, 21 Jun 2010 03:07:39 +0000 (23:07 -0400)]
Test glib_check_version
Matthias Clasen [Mon, 21 Jun 2010 02:46:47 +0000 (22:46 -0400)]
Add support for coverage reports with lcov
Patch by Patrick Hulin, bug #501057.
Matthias Clasen [Mon, 21 Jun 2010 02:18:30 +0000 (22:18 -0400)]
Some fixes
Matthias Clasen [Mon, 21 Jun 2010 01:16:24 +0000 (21:16 -0400)]
Move utf8 validation tests to the test framework
Matthias Clasen [Mon, 21 Jun 2010 01:04:47 +0000 (21:04 -0400)]
Move utf8 pointer tests to test framework
Matthias Clasen [Sun, 20 Jun 2010 20:24:56 +0000 (16:24 -0400)]
Consolide base64 tests in a single file
Matthias Clasen [Sun, 20 Jun 2010 16:29:17 +0000 (12:29 -0400)]
Move scanner tests to glib/tests
Ryan Lortie [Sun, 20 Jun 2010 16:32:00 +0000 (12:32 -0400)]
GVariant: fix doc copy/paste error
Ryan Lortie [Sun, 20 Jun 2010 16:30:27 +0000 (12:30 -0400)]
Add enum type for GVariantParseError
Matthias Clasen [Sun, 20 Jun 2010 16:23:13 +0000 (12:23 -0400)]
Move sequence tests to the test framework
Matthias Clasen [Sun, 20 Jun 2010 15:34:31 +0000 (11:34 -0400)]
Move base64 tests of to test framework
Matthias Clasen [Sun, 20 Jun 2010 15:20:41 +0000 (11:20 -0400)]
Add new scripts to docs
Matthias Clasen [Sun, 20 Jun 2010 15:07:49 +0000 (11:07 -0400)]
Move regex tests to the g_test framework
Christian Persch [Sun, 20 Jun 2010 00:32:35 +0000 (02:32 +0200)]
Docs fix
Matthias Clasen [Sun, 20 Jun 2010 05:46:35 +0000 (01:46 -0400)]
Update the include pcre to 8.02
Matthias Clasen [Sun, 20 Jun 2010 05:14:55 +0000 (01:14 -0400)]
Add Unicode 5.2 scripts
Matthias Clasen [Sun, 20 Jun 2010 04:09:00 +0000 (00:09 -0400)]
Fix a memory leak in g_ptr_array_remove_index_fast
We need to call the element_free_func even if we remove the
last element. Bug #618866.
Ryan Lortie [Sat, 19 Jun 2010 20:13:58 +0000 (16:13 -0400)]
GSettings: complete support for enum binding
Johan Dahlin [Sat, 19 Jun 2010 18:23:35 +0000 (15:23 -0300)]
[configure] Require dbus 1.2.14
dbus_message_set_serial requires dbus 1.2.14, make the dependency
explicit instead of failing to compile a test.
Christian Persch [Sat, 19 Jun 2010 18:04:20 +0000 (20:04 +0200)]
Tiny docs fix
Christian Persch [Thu, 17 Jun 2010 23:08:13 +0000 (01:08 +0200)]
Add g_value_take_variant
Turns out we do need g_value_take_variant(), so we can correctly
implement VARIANT:* marshalers.
Bug #621947.
Christian Persch [Sat, 19 Jun 2010 14:42:11 +0000 (16:42 +0200)]
Add g_variant_is_floating
Christian Persch [Sat, 19 Jun 2010 14:41:25 +0000 (16:41 +0200)]
Fix a preprocessor warning with --disable-visibility
Don't redefine DISABLE_VISIBILITY when already building with
--disable-visibility.
Milan Bouchet-Valat [Sat, 19 Jun 2010 17:00:13 +0000 (19:00 +0200)]
Fix gsettings tool crash, part 2
Same as previous commit, but for two other functions it missed.
Milan Bouchet-Valat [Sat, 19 Jun 2010 16:33:26 +0000 (18:33 +0200)]
Fix gsettings tool crash
When no path is provided for the schema, we have call
g_settings_new() instead of g_settings_new_with_path()
passing a NULL path.
This was crashing the tool on start since an assertion was
recently added to g_settings_new_with_path() to refuse NULL.
Ryan Lortie [Sat, 19 Jun 2010 15:38:57 +0000 (11:38 -0400)]
Fix bug in strinfo
We can't search for a larger needle inside of a smaller haystack, and
unsigned integer subtraction tends to result in very large numbers
rather than small ones.
Add a check for this case and abort out immediately.
Also add a test case (lifted directly from the docs) that demonstrates
the problem.
Issue discovered and tracked down by Milan Bouchet-Valat
Fran Diéguez [Sat, 19 Jun 2010 13:13:41 +0000 (15:13 +0200)]
Updated Galician translations
Ryan Lortie [Sat, 19 Jun 2010 03:14:46 +0000 (23:14 -0400)]
Add a note to docs about paragraphs in schemas
Ryan Lortie [Sat, 19 Jun 2010 02:59:43 +0000 (22:59 -0400)]
Conditional gsettings.m4 support, AC_PATH_PROG
Add new support for conditional enabling of GSettings (as per
bug #616718) and use AC_PATH_PROG instead of AC_PATH_TOOL (as per
bug #621172).
Jürg Billeter [Fri, 18 Jun 2010 21:48:28 +0000 (23:48 +0200)]
GDBus: Sink closures in _with_closures functions
See https://bugzilla.gnome.org/show_bug.cgi?id=621092#c12
Signed-off-by: David Zeuthen <davidz@redhat.com>
Colin Walters [Wed, 16 Jun 2010 18:17:26 +0000 (14:17 -0400)]
[GApplication] Add working directory to platform data
https://bugzilla.gnome.org/show_bug.cgi?id=621838
Tor Lillqvist [Fri, 18 Jun 2010 07:56:25 +0000 (10:56 +0300)]
Fix build on non-Unix
Matthias Clasen [Thu, 17 Jun 2010 23:42:46 +0000 (19:42 -0400)]
2.25.9
Matthias Clasen [Thu, 17 Jun 2010 23:08:13 +0000 (19:08 -0400)]
Fix a mismerge
Matthias Clasen [Thu, 17 Jun 2010 23:04:03 +0000 (19:04 -0400)]
Fix distcheck
Christian Persch [Thu, 17 Jun 2010 22:38:46 +0000 (00:38 +0200)]
Fix VARIANT out args
Use g_value_set_variant(), not the nonexistent g_value_take_variant().
Christian Persch [Thu, 17 Jun 2010 22:10:17 +0000 (00:10 +0200)]
Add VARIANT to glib-genmarshal docs
David Zeuthen [Thu, 17 Jun 2010 21:58:25 +0000 (17:58 -0400)]
GDBusMessage: Fix bug when deserializing a message
See https://bugzilla.gnome.org/show_bug.cgi?id=621838 for the whole
story. The problem was that we ended up reading data from arrays of
arrays when we were just supposed to be aligning the buffers.
Also add a host of debug infrastructure that was needed to find the
root cause. For now it can be turned on only via defining
DEBUG_SERIALIZER. In the future we might want to make it work via
G_DBUS_DEBUG. In a nutshell, the added debug info looks like this
Parsing blob (blob_len = 0x0084 bytes)
0000: 6c 01 00 01 3c 00 00 00 41 00 00 00 37 00 00 00 l...<...A...7...
0010: 08 01 67 00 08 61 61 79 61 7b 73 76 7d 00 00 00 ..g..aaya{sv}...
0020: 01 01 6f 00 08 00 00 00 2f 66 6f 6f 2f 62 61 72 ..o...../foo/bar
0030: 00 00 00 00 00 00 00 00 03 01 73 00 06 00 00 00 ..........s.....
0040: 4d 65 6d 62 65 72 00 00 00 00 00 00 34 00 00 00 Member......4...
0050: 03 00 00 00 63 77 64 00 01 73 00 00 23 00 00 00 ....cwd..s..#...
0060: 2f 68 6f 6d 65 2f 64 61 76 69 64 7a 2f 48 61 63 /home/davidz/Hac
0070: 6b 69 6e 67 2f 67 6c 69 62 2f 67 69 6f 2f 74 65 king/glib/gio/te
0080: 73 74 73 00 sts.
Parsing headers (blob_len = 0x0084 bytes)
Reading type a{yv} from offset 0x000c: array spans 0x0037 bytes
Reading type {yv} from offset 0x0010
Reading type y from offset 0x0010: 0x08 '
Reading type v from offset 0x0011
Reading type g from offset 0x0014: 'aaya{sv}'
Reading type {yv} from offset 0x001e
Reading type y from offset 0x0020: 0x01 '\ 1'
Reading type v from offset 0x0021
Reading type o from offset 0x0024: '/foo/bar'
Reading type {yv} from offset 0x0031
Reading type y from offset 0x0038: 0x03 '\ 3'
Reading type v from offset 0x0039
Reading type s from offset 0x003c: 'Member'
Parsing body (blob_len = 0x0084 bytes)
Reading type (aaya{sv}) from offset 0x0047
Reading type aay from offset 0x0048: array spans 0x0000 bytes
Reading type a{sv} from offset 0x004c: array spans 0x0034 bytes
Reading type {sv} from offset 0x0050
Reading type s from offset 0x0050: 'cwd'
Reading type v from offset 0x0058
Reading type s from offset 0x005b: '/home/davidz/Hacking/glib/gio/tests'
OK
Signed-off-by: David Zeuthen <davidz@redhat.com>
Christian Persch [Thu, 17 Jun 2010 21:44:25 +0000 (23:44 +0200)]
Distcheck fix
Add a missing symbol to gobject.symbols.
Ryan Lortie [Thu, 17 Jun 2010 20:56:09 +0000 (16:56 -0400)]
Make g_settings_sync() a proper prototype.
Matthias Clasen [Thu, 17 Jun 2010 20:36:58 +0000 (16:36 -0400)]
Fix the build
Matthias Clasen [Thu, 17 Jun 2010 20:13:29 +0000 (16:13 -0400)]
Updates
David Zeuthen [Thu, 17 Jun 2010 20:09:12 +0000 (16:09 -0400)]
GDBus: Complain via g_warning() if an invalid message is received
While we are already propagating the error to the user via the
GDBusConnection::disconnected signal (because the only safe thing is
to disconnect the other peer), changes are the user is simply not
listening to this signal.
This should never ever happen unless there's a bug in the
serializaer/deserializer so it's fine to complain via g_warning()
here.
Bug 621838, see
https://bugzilla.gnome.org/show_bug.cgi?id=621838
is related to this.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Thu, 17 Jun 2010 20:02:24 +0000 (16:02 -0400)]
GDBusMessage: Properly check error and bail if set
Otherwise we may set a GError on top of it.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Matthias Clasen [Thu, 17 Jun 2010 20:07:52 +0000 (16:07 -0400)]
Documentation fixups
Matthias Clasen [Thu, 17 Jun 2010 19:51:37 +0000 (15:51 -0400)]
fix a typo
Christian Persch [Thu, 17 Jun 2010 19:40:47 +0000 (21:40 +0200)]
Fix GApplication for the G_TYPE_VARIANT change
Matthias Clasen [Thu, 17 Jun 2010 19:29:45 +0000 (15:29 -0400)]
Update api docs to current api
David Zeuthen [Thu, 17 Jun 2010 19:27:18 +0000 (15:27 -0400)]
Catch up with G_TYPE_VARIANT changes
The GType for a GVariant is now a fundamental GType instead of a boxed
one so use the right marshaller.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Matthias Clasen [Thu, 17 Jun 2010 19:07:08 +0000 (15:07 -0400)]
Fix a typo
Ryan Lortie [Thu, 17 Jun 2010 19:06:33 +0000 (15:06 -0400)]
GSettings: remove "context" from backend too.
Note: this is a GSettingsBackend API/ABI change.
Christian Persch [Thu, 17 Jun 2010 16:03:51 +0000 (18:03 +0200)]
Add fundamental type and pspec for GVariant
Make G_TYPE_VARIANT a fundamental type instead of boxed, and add
g_variant_{set,get,dup}_variant.
Add GParamSpecVariant.
Bug #610863.
Ryan Lortie [Thu, 17 Jun 2010 18:58:46 +0000 (14:58 -0400)]
Revert "GVariant: add g_variant_default_value()"
This reverts commit
b205dc77cb14f67818eaac23d0eb3f5d1b867921.
We decided to go the other route with the GParamSpec.
Ryan Lortie [Thu, 17 Jun 2010 18:33:50 +0000 (14:33 -0400)]
Only run the schema compiler from the test cases