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
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.