Matthias Clasen [Mon, 5 Jul 2010 12:28:54 +0000 (08:28 -0400)]
Add some more tests for the buffered read code
Matthias Clasen [Mon, 5 Jul 2010 11:40:38 +0000 (07:40 -0400)]
Trivial cleanups
Ryan Lortie [Mon, 5 Jul 2010 17:10:28 +0000 (13:10 -0400)]
Add --disable-Bsymbolic flag
Matthias Clasen [Mon, 5 Jul 2010 07:09:36 +0000 (03:09 -0400)]
Misc test additions
Matthias Clasen [Mon, 5 Jul 2010 06:36:48 +0000 (02:36 -0400)]
Fix a typo
Matthias Clasen [Mon, 5 Jul 2010 04:56:12 +0000 (00:56 -0400)]
Cleanups
Matthias Clasen [Mon, 5 Jul 2010 03:42:07 +0000 (23:42 -0400)]
Add some more tests
Matthias Clasen [Mon, 5 Jul 2010 03:41:40 +0000 (23:41 -0400)]
Add some GAppLaunchContext tests
Matthias Clasen [Mon, 5 Jul 2010 03:40:42 +0000 (23:40 -0400)]
Add the new tests to the correct variable
Matthias Clasen [Mon, 5 Jul 2010 02:27:01 +0000 (22:27 -0400)]
Add some contenttype tests
Matthias Clasen [Mon, 5 Jul 2010 00:50:50 +0000 (20:50 -0400)]
Add a test for skipping
Matthias Clasen [Mon, 5 Jul 2010 00:49:29 +0000 (20:49 -0400)]
Add some CharsetConverter tests
Matthias Clasen [Sat, 3 Jul 2010 17:43:25 +0000 (13:43 -0400)]
Move charset conversion tests to the test framework
Matthias Clasen [Sat, 3 Jul 2010 16:49:46 +0000 (12:49 -0400)]
Add some more appinfo tests
Jorge González [Sun, 4 Jul 2010 11:49:55 +0000 (13:49 +0200)]
Updated Spanish translation
Jorge González [Sat, 3 Jul 2010 11:48:56 +0000 (13:48 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 3 Jul 2010 07:31:24 +0000 (03:31 -0400)]
Move GZlibConverter tests
Matthias Clasen [Sat, 3 Jul 2010 07:31:07 +0000 (03:31 -0400)]
Add tests for GIcon
David Zeuthen [Fri, 2 Jul 2010 21:09:55 +0000 (17:09 -0400)]
GDBus: Rename "Introspection XML" section to "D-Bus Introspection Data"
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Fri, 2 Jul 2010 15:35:43 +0000 (11:35 -0400)]
Bug 623407 - g_keyfile_settings_backend_new crash
The keyfile backend forms paths like this:
prefix + group_name + '/' + keyname
If the prefix is '/apps/yelp/' and the group name is '/' then this means
that we end up with a key name of (for example):
'/apps/yelp/' + '/' + '/' + 'font-adjustment'
= '/apps/yelp///font-adjustment'
which is obviously not a valid key name.
This patch rejects group names starting or ending with '/' or containing
'//' and also rejects keys containing '/'. This should make it
impossible for invalid keys to be formed.
Ryan Lortie [Fri, 2 Jul 2010 15:14:28 +0000 (11:14 -0400)]
Bug 623402 - schema compiler reports wrong line
Don't reuse the GMarkupParseContext in order to avoid inaccurate line
number reports. Fix a memory leak, too.
Ryan Lortie [Fri, 2 Jul 2010 15:11:45 +0000 (11:11 -0400)]
Bug 623401 - schema compiler: process enums first
Process *.enum.xml before any *.gschema.xml files to ensure that all
enums have been defined.
David Zeuthen [Fri, 2 Jul 2010 13:40:59 +0000 (09:40 -0400)]
GDBus: Hold lock when printing debug messages
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Fri, 2 Jul 2010 13:34:03 +0000 (09:34 -0400)]
GDBus: make G_DBUS_DEBUG=authentication work again
This was inadvertently removed in this commit
http://git.gnome.org/browse/glib/commit/?id=
1d22b64843c83631bcd0e5255930f3a4e990961e
Signed-off-by: David Zeuthen <davidz@redhat.com>
Tor Lillqvist [Fri, 2 Jul 2010 12:31:24 +0000 (15:31 +0300)]
Update headers being installed in the Visual Studio project
It sucks to have the lists of public headers duplicated in the
Makefile.am files and the glib.vsprops file. But it isn't exactly easy
to work around all the weirdness in autotools, Visual Studio, and bat
files either to do it another way.
Ryan Lortie [Thu, 1 Jul 2010 22:58:56 +0000 (18:58 -0400)]
Bug 622124 - implement flags for GSettings
Add a <flags> tag to the schema file format and a flags='' attribute to
go along with. Add some extra test cases for those.
Add new g_settings_{get,set}_flags() calls and support binding to
GParamSpecFlags properties. Add test cases.
Jorge González [Thu, 1 Jul 2010 19:39:37 +0000 (21:39 +0200)]
Updated Spanish translation
David Zeuthen [Thu, 1 Jul 2010 18:37:16 +0000 (14:37 -0400)]
Bug 620913 – More control with G_DBUS_DEBUG
This commit adds the following G_DBUS_DEBUG flags
- emission
- incoming
- call
- signal
- payload
https://bugzilla.gnome.org/show_bug.cgi?id=620913
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Thu, 1 Jul 2010 17:06:56 +0000 (13:06 -0400)]
GDBus: Fix bug in child enumeration
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Thu, 1 Jul 2010 16:55:04 +0000 (12:55 -0400)]
Use "unix:" instead of tcp in test for now...
Temporarily avoids the issue reported in bug #623306.
David Zeuthen [Wed, 30 Jun 2010 20:36:47 +0000 (16:36 -0400)]
GDBus: plug some memory leaks
These fixes makes udisks-daemon from udisks' gdbus-port branch, see
http://cgit.freedesktop.org/udisks/log/?h=gdbus-port
handle 200 add/remove uevents generated by e.g.
#!/bin/bash
DEV=mmcblk0p1
for n in `seq 200` ; do
udevadm trigger --sysname-match=$DEV --action=remove
udevadm trigger --sysname-match=$DEV --action=add
echo foo $n
done
without any substantial leaks.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Wed, 30 Jun 2010 17:27:38 +0000 (13:27 -0400)]
GSettings: accept <flags> as an alias for <enum>
until we have proper support for flags...
Ryan Lortie [Wed, 30 Jun 2010 17:12:19 +0000 (13:12 -0400)]
gsettings.m4: add support for enums
David Zeuthen [Wed, 30 Jun 2010 16:19:28 +0000 (12:19 -0400)]
GDBus: Take a reference to the GDBusInterfaceInfo object
Things will still work fine if the GDBusInterfaceInfo is allocated
statically because if so the ref_count will be -1.
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 30 Jun 2010 16:10:00 +0000 (12:10 -0400)]
GDBus: Rename `introspection_data' parameter to `interface_info'
Signed-off-by: David Zeuthen <davidz@redhat.com>
David Zeuthen [Wed, 30 Jun 2010 15:43:42 +0000 (11:43 -0400)]
Bug 623142 – Ensure ::new-connection runs before processing D-Bus messages
Without this guarantee, peer-to-peer connections are not very
useful. However, with this guarantee it's possible to export objects
in a handler for the GDBusServer::new-connection signal.
There are two caveats with this patch
- it won't work on message bus connections
- we don't queue up messages to be written
that can be addresses later if needed.
https://bugzilla.gnome.org/show_bug.cgi?id=623142
Signed-off-by: David Zeuthen <davidz@redhat.com>
Ryan Lortie [Wed, 30 Jun 2010 14:02:45 +0000 (10:02 -0400)]
g_settings_list_keys() -> _list_items()
This function returns children as well.
Ryan Lortie [Wed, 30 Jun 2010 00:24:39 +0000 (20:24 -0400)]
GSettings: add <override>, tests, modify output
Add <override> tag, more tests, and actually output the results of these
new tags to the gschemas.compiled file.
Ryan Lortie [Tue, 29 Jun 2010 18:41:04 +0000 (14:41 -0400)]
GSettings: new <schema> tags 'extends', 'list-of'
Add support for extends='' and list-of='' tags to the <schema> element.
The attributes are parsed and some sanity-checking is done but currently
nothing happens as a result.
Add some tests.
Ryan Lortie [Tue, 29 Jun 2010 18:40:44 +0000 (14:40 -0400)]
glib-compile-schemas: fix small leak
David Zeuthen [Tue, 29 Jun 2010 19:19:56 +0000 (15:19 -0400)]
Bug 623143 – Never require non-closed connections
There's a couple of places in GDBus where it's a programming error
(e.g. we'll assert or spew via e.g. g_warning()) to use the API on a
closed connection. This approach can never work since a
GDBusConnection can be closed at any point in time outside of
programmer control.
Just change the code to return a run-time error (e.g. return
G_IO_ERROR_CLOSED when sending messages, invoking methods) or silently
accept the request (e.g. exporting objects, registering for signals)
without doing anything.
Note that a GDBusConnection object is always useless after being
closed - e.g. there's no way to "reopen" a connection - the user will
have to create a new object and use that instead.
https://bugzilla.gnome.org/show_bug.cgi?id=623143
Signed-off-by: David Zeuthen <davidz@redhat.com>
Milan Bouchet-Valat [Mon, 21 Jun 2010 15:09:07 +0000 (17:09 +0200)]
Bug 622294 - More annotations for GVariant
This adds annotations to all functions in gvariant.c. A few docs
were also fixed (wrong parameter names, missing mention that NULL
is allowed).
Colin Walters [Mon, 28 Jun 2010 21:16:44 +0000 (17:16 -0400)]
[autogen.sh] Support NOCONFIGURE (from gnome-common)
gnome-common's autogen.sh uses NOCONFIGURE to skip running configure.
Support that in addition to the current AUTOGEN_SUBDIR_MODE.
Jorge González [Mon, 28 Jun 2010 18:57:31 +0000 (20:57 +0200)]
Updated Spanish translation
Ryan Lortie [Mon, 28 Jun 2010 18:06:32 +0000 (14:06 -0400)]
Bug 622565 - compile-schemas fails when no schemas
Neutralise and deprecate the --uninstall option in the schema compiler
and remove it from gsettings.m4.
Make the new default behaviour a compromise between the old default
behaviour and the previous --uninstall option:
- never return a failure code if no schema files are found
- issue a warning instead
- remove the gschemas.compiled file if it exists
Ryan Lortie [Mon, 28 Jun 2010 17:58:25 +0000 (13:58 -0400)]
GSettings: peek instead of ref/unref enum class
We only ever do the enum mapping for the property binding in the case
that a GParamSpecEnum exists and in that case the class is already
referenced by the GParamSpec. Use peek instead of ref/unref and add a
clarifying note.
Ryan Lortie [Mon, 28 Jun 2010 14:18:45 +0000 (10:18 -0400)]
Bug 622127 - GSettings extended key validation
First shot at attempting to implement this in a reasonable way. See
the bug for more information about why this is needed.
Yaron Shahrabani [Mon, 28 Jun 2010 09:28:47 +0000 (12:28 +0300)]
Updated Hebrew translation.
Matthias Clasen [Sun, 27 Jun 2010 23:27:04 +0000 (19:27 -0400)]
Fix a alloc/free mismatch
Pointed out in http://bugzilla.redhat.com/show_bug.cgi?id=608453
by David Tardon.
Matthias Clasen [Sun, 27 Jun 2010 20:31:53 +0000 (16:31 -0400)]
Filter out child schema entries when listing keys
Matthias Clasen [Sun, 27 Jun 2010 20:00:20 +0000 (16:00 -0400)]
Implement bash completion for gsettings
Ryan Lortie [Sun, 27 Jun 2010 14:11:45 +0000 (10:11 -0400)]
GSettings: Don't free value before using its type
Fix a bug where the type from g_variant_get_type() was used after
freeing the variant. This works for base types (since they are cached
and live forever) but not for arrays (where the bug was first seen).
Kristian Rietveld [Sat, 26 Jun 2010 20:55:47 +0000 (22:55 +0200)]
Add PCRE_EXP_DECL to pcre_callout declaration
Fixes build on Mac OS X.
Jorge González [Sat, 26 Jun 2010 08:14:52 +0000 (10:14 +0200)]
Updated Spanish translation
Ryan Lortie [Fri, 25 Jun 2010 14:52:32 +0000 (10:52 -0400)]
Bug 622128 - retry with default for failed mapping
Hold the GSettingsKeyInfo as part of the binding structure to save work
on each get/set. Use our copy of this structure to call the internal
get/set APIs. Give more descriptive error messages in the case of
invalid data on sets and retry using the translated default then schema
default value in case of failure to map on reads.
Colin Walters [Thu, 17 Jun 2010 02:44:58 +0000 (22:44 -0400)]
[gbinding] Move argument reference out of first column
It makes gobject-introspection complain.
Dan Winship [Thu, 24 Jun 2010 18:23:37 +0000 (14:23 -0400)]
Hack up glib/tests/array-test to not actually malloc 2G
Fixes the test on machines where that allocation takes very long.
https://bugzilla.gnome.org/show_bug.cgi?id=610784
Ryan Lortie [Thu, 24 Jun 2010 17:32:26 +0000 (13:32 -0400)]
version.bump()
Ryan Lortie [Thu, 24 Jun 2010 17:18:44 +0000 (13:18 -0400)]
Release glib 2.25.10
Ryan Lortie [Thu, 24 Jun 2010 16:25:48 +0000 (12:25 -0400)]
Tweak GSettings key/schema listing APIs
Ryan Lortie [Thu, 24 Jun 2010 06:28:01 +0000 (02:28 -0400)]
Clarify GSettings documentation wrt errors
Make it clear about exactly what "@key is valid" means.
Ryan Lortie [Thu, 24 Jun 2010 06:21:58 +0000 (02:21 -0400)]
g_keyfile_settings_backend_new doc improvement
Ryan Lortie [Thu, 24 Jun 2010 06:15:15 +0000 (02:15 -0400)]
GSettings: add g_settings_list_keys()
Second half of bug #622554.
Ryan Lortie [Thu, 24 Jun 2010 05:49:27 +0000 (01:49 -0400)]
Add g_settings_schema_exists
Solves half of #622554.
Ryan Lortie [Thu, 24 Jun 2010 05:49:00 +0000 (01:49 -0400)]
KeyfileSettingsBackend: fix symbol visibility leak
Ryan Lortie [Tue, 22 Jun 2010 12:12:04 +0000 (08:12 -0400)]
Rework the GSettings keyfile backend
Ryan Lortie [Thu, 24 Jun 2010 04:55:14 +0000 (00:55 -0400)]
GSettingsBackend: some debug code
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