platform/upstream/glib.git
14 years agoglib/: fully remove galias hacks
Ryan Lortie [Wed, 7 Jul 2010 23:34:03 +0000 (19:34 -0400)]
glib/: fully remove galias hacks

14 years ago.gitignore updates
Ryan Lortie [Wed, 7 Jul 2010 20:52:23 +0000 (16:52 -0400)]
.gitignore updates

14 years agoGDBus: Hide instance structures for classes we don't want to be subclassed
David Zeuthen [Wed, 7 Jul 2010 20:35:17 +0000 (16:35 -0400)]
GDBus: Hide instance structures for classes we don't want to be subclassed

This also allows us to nuke the priv-> pointers and save a couple of
indirections.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agofix trivial copy/paste error in bytestring docs
Ryan Lortie [Wed, 7 Jul 2010 20:32:46 +0000 (16:32 -0400)]
fix trivial copy/paste error in bytestring docs

14 years agoGVariant: improve bytestring support
Ryan Lortie [Wed, 7 Jul 2010 14:37:16 +0000 (10:37 -0400)]
GVariant: improve bytestring support

 - add G_VARIANT_TYPE_BYTESTRING, _BYTESTRING_ARRAY, _STRING_ARRAY

 - remove g_variant_{new,get}_byte_array functions

 - add g_variant_{new,get,dup}_bytestring{,_array} functions

 - remove undocumented support for deserialising arrays of objectpaths
   or signature strngs using g_variant_get_strv()

 - add and document new format strings '^ay', '^&ay', '^aay' and '^a&ay'

 - update GApplication to use the new API

 - update GSettings binding code to use the new API

 - add tests

14 years agoGDBus: Hide class structures for classes we don't want to be subclassed
David Zeuthen [Wed, 7 Jul 2010 19:57:37 +0000 (15:57 -0400)]
GDBus: Hide class structures for classes we don't want to be subclassed

E.g. move these C structures out of public header files and into their
respective C files. Also nuke padding since this is no longer needed.

This leaves only GDBusProxy as an extendable type.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 618882 – No way to ensure that a message is sent
David Zeuthen [Wed, 7 Jul 2010 19:00:23 +0000 (15:00 -0400)]
Bug 618882 – No way to ensure that a message is sent

Add g_dbus_connection_flush{_finish,sync}().

https://bugzilla.gnome.org/show_bug.cgi?id=618882

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUpdated Galician translations
Fran Diéguez [Wed, 7 Jul 2010 16:25:19 +0000 (18:25 +0200)]
Updated Galician translations

14 years agoGDBus: Only rewrite serial number if g_dbus_message_get_serial() returns 0
David Zeuthen [Wed, 7 Jul 2010 15:02:08 +0000 (11:02 -0400)]
GDBus: Only rewrite serial number if g_dbus_message_get_serial() returns 0

While this a dangerous thing to allow (collissions, reply_serial not
matching up etc.), the added flexibility makes this a good trade-off -
for example, with this feature, it's now a lot easier to build message
routers.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGSettings: warn if use the 'memory' backend
Ryan Lortie [Wed, 7 Jul 2010 14:56:57 +0000 (10:56 -0400)]
GSettings: warn if use the 'memory' backend

but only if it was not explicitly selected.

14 years agotrivial GSettings docs fix
Ryan Lortie [Wed, 7 Jul 2010 14:46:13 +0000 (10:46 -0400)]
trivial GSettings docs fix

14 years agoBug 623538 – GDBusProxy::g-properties-changed emission for corner cases
David Zeuthen [Wed, 7 Jul 2010 13:50:44 +0000 (09:50 -0400)]
Bug 623538 – GDBusProxy::g-properties-changed emission for corner cases

Also emit GDBusProxy::g-properties-changed when dropping (when the
name owner vanishes) or populating (when loading properties) the
property cache.

https://bugzilla.gnome.org/show_bug.cgi?id=623538

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 623537 – GDBusProxy has weird checking on NameOwnerChanged
David Zeuthen [Wed, 7 Jul 2010 13:05:42 +0000 (09:05 -0400)]
Bug 623537 – GDBusProxy has weird checking on NameOwnerChanged

Remove misleading (and always true) check on the name that the
NameOwnerChanged signal is for.

https://bugzilla.gnome.org/show_bug.cgi?id=623537

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoFix some errors in translated strings
Matthias Clasen [Wed, 7 Jul 2010 11:37:42 +0000 (07:37 -0400)]
Fix some errors in translated strings

gettext can't handle macros, so we have to use literal format
specifiers, unfortunately.

14 years agoClear the buffer initially
Matthias Clasen [Wed, 7 Jul 2010 05:00:58 +0000 (01:00 -0400)]
Clear the buffer initially

14 years agoDon't forget to dist keyfiletest.ini
Matthias Clasen [Wed, 7 Jul 2010 04:38:27 +0000 (00:38 -0400)]
Don't forget to dist keyfiletest.ini

14 years agoInclude sys/wait.h for WEXITSTATUS()
Danielle Madeley [Wed, 7 Jul 2010 02:47:54 +0000 (12:47 +1000)]
Include sys/wait.h for WEXITSTATUS()

14 years agoGDBus: Handle autolaunching on UNIX/Freedesktop OSes
David Zeuthen [Tue, 6 Jul 2010 20:57:28 +0000 (16:57 -0400)]
GDBus: Handle autolaunching on UNIX/Freedesktop OSes

Also add a 'address' G_DBUS_DEBUG option that will print out useful
debug information such as

  GDBus-debug:Address: In g_dbus_address_get_for_bus_sync() for bus type `session'
  GDBus-debug:Address: env var DBUS_SESSION_BUS_ADDRESS is not set
  GDBus-debug:Address: env var DBUS_SYSTEM_BUS_ADDRESS is not set
  GDBus-debug:Address: env var DBUS_STARTER_BUS_TYPE is not set
  GDBus-debug:Address: Running `dbus-launch --autolaunch=05e508961149264c9b750a4c494aa6f7 --binary-syntax --close-stderr' to get bus address (possibly autolaunching)
  GDBus-debug:Address: dbus-launch output:
    0000: 75 6e 69 78  3a 61 62 73  74 72 61 63  74 3d 2f 74    unix:abstract=/t
    0010: 6d 70 2f 64  62 75 73 2d  77 42 41 6f  4b 59 49 52    mp/dbus-wBAoKYIR
    0020: 7a 75 2c 67  75 69 64 3d  30 34 30 64  31 33 66 33    zu,guid=040d13f3
    0030: 30 61 30 62  35 32 63 32  30 66 36 32  63 34 31 63    0a0b52c20f62c41c
    0040: 30 30 30 30  35 30 38 64  00 d2 38 00  00 01 00 40    0000508d..8....@
    0050: 05 00 00 00  00                                       .....
  GDBus-debug:Address: dbus-launch stderr output:
  14542: Autolaunch enabled (using X11).
  14542: --exit-with-session automatically enabled
  14542: Connected to X11 display ':0.0'
  14542: === Parent dbus-launch continues
  14542: Waiting for babysitter's intermediate parent
  14542: Reading address from bus
  14542: Reading PID from daemon
  14542: Saving x11 address
  14542: Created window 88080385
  14542: session file: /root/.dbus/session-bus/05e508961149264c9b750a4c494aa6f7-0
  14542: dbus-launch exiting
  GDBus-debug:Address: Returning address `unix:abstract=/tmp/dbus-wBAoKYIRzu,guid=040d13f30a0b52c20f62c41c0000508d' for bus type `session'

and

  GDBus-debug:Address: In g_dbus_address_get_for_bus_sync() for bus type `session'
  GDBus-debug:Address: env var DBUS_SESSION_BUS_ADDRESS is not set
  GDBus-debug:Address: env var DBUS_SYSTEM_BUS_ADDRESS is not set
  GDBus-debug:Address: env var DBUS_STARTER_BUS_TYPE is not set
  GDBus-debug:Address: Running `dbus-launch --autolaunch=05e508961149264c9b750a4c494aa6f7 --binary-syntax --close-stderr' to get bus address (possibly autolaunching)
  GDBus-debug:Address: dbus-launch output:
    0000: 75 6e 69 78  3a 61 62 73  74 72 61 63  74 3d 2f 74    unix:abstract=/t
    0010: 6d 70 2f 64  62 75 73 2d  77 42 41 6f  4b 59 49 52    mp/dbus-wBAoKYIR
    0020: 7a 75 2c 67  75 69 64 3d  30 34 30 64  31 33 66 33    zu,guid=040d13f3
    0030: 30 61 30 62  35 32 63 32  30 66 36 32  63 34 31 63    0a0b52c20f62c41c
    0040: 30 30 30 30  35 30 38 64  00 d2 38 00  00 01 00 40    0000508d..8....@
    0050: 05 00 00 00  00                                       .....
  GDBus-debug:Address: dbus-launch stderr output:
  14549: Autolaunch enabled (using X11).
  14549: --exit-with-session automatically enabled
  14549: Connected to X11 display ':0.0'
  14549: dbus-daemon is already running. Returning existing parameters.
  14549: dbus-launch exiting
  GDBus-debug:Address: Returning address `unix:abstract=/tmp/dbus-wBAoKYIRzu,guid=040d13f30a0b52c20f62c41c0000508d' for bus type `session'

Note that things work exactly like libdbus, e.g. from the
dbus-launch(1) man page:

  Whenever an autolaunch occurs, the application that had to start a
  new bus will be in its own little world; it can effectively end up
  starting a whole new session if it tries to use a lot of bus
  services. This can be suboptimal or even totally broken, depending
  on the app and what it tries to do.

  [...]

  You can always avoid autolaunch by manually setting
  DBUS_SESSION_BUS_ADDRESS. Autolaunch happens because the default
  address if none is set is "autolaunch:", so if any other address is
  set there will be no autolaunch. You can however include autolaunch
  in an explicit session bus address as a fallback, for example
  DBUS_SESSION_BUS_ADDRESS="something:,autolaunch:" - in that case if
  the first address doesn't work, processes will autolaunch. (The bus
  address variable contains a comma-separated list of addresses to
  try.)

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Properly handle empty address strings
David Zeuthen [Tue, 6 Jul 2010 17:56:35 +0000 (13:56 -0400)]
GDBus: Properly handle empty address strings

Changes this error

 DBUS_SESSION_BUS_ADDRESS= \
 gdbus introspect --session \
                  --dest org.freedesktop.DBus \
                  --object-path /org/freedesktop/DBus
 **
 GLib-GIO:ERROR:gdbusaddress.c:913:g_dbus_address_get_stream_sync: assertion failed: (last_error != NULL)
 Aborted (core dumped)

to

 DBUS_SESSION_BUS_ADDRESS= \
 gdbus introspect --session \
                  --dest org.freedesktop.DBus \
                  --object-path /org/freedesktop/DBus
 Error connecting: The given address is empty

which is much more preferable.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoFix problems with the keyfile test
Matthias Clasen [Tue, 6 Jul 2010 11:43:19 +0000 (07:43 -0400)]
Fix problems with the keyfile test

We must set XDG_DATA_HOME early on, and we must clear error
before using it.

14 years agoImprove keyfile test coverage
Matthias Clasen [Tue, 6 Jul 2010 04:01:40 +0000 (00:01 -0400)]
Improve keyfile test coverage

14 years agoDefine SRCDIR
Matthias Clasen [Tue, 6 Jul 2010 04:01:15 +0000 (00:01 -0400)]
Define SRCDIR

14 years agoAdd some GDir tests
Matthias Clasen [Tue, 6 Jul 2010 03:43:47 +0000 (23:43 -0400)]
Add some GDir tests

14 years agoImprove uri test coverage
Matthias Clasen [Tue, 6 Jul 2010 03:30:10 +0000 (23:30 -0400)]
Improve uri test coverage

14 years agoMove uri tests to the test framework
Matthias Clasen [Tue, 6 Jul 2010 03:06:50 +0000 (23:06 -0400)]
Move uri tests to the test framework

14 years agoAdd more list tests
Matthias Clasen [Tue, 6 Jul 2010 02:40:46 +0000 (22:40 -0400)]
Add more list tests

14 years agoMove tree tests to the test framework
Matthias Clasen [Tue, 6 Jul 2010 02:40:26 +0000 (22:40 -0400)]
Move tree tests to the test framework

14 years agoMove slist tests to the test framework
Matthias Clasen [Tue, 6 Jul 2010 01:06:28 +0000 (21:06 -0400)]
Move slist tests to the test framework

14 years agoMove list tests to the test framework
Matthias Clasen [Tue, 6 Jul 2010 00:51:29 +0000 (20:51 -0400)]
Move list tests to the test framework

14 years agoAdd some more checks to the binding tests
Matthias Clasen [Mon, 5 Jul 2010 23:49:03 +0000 (19:49 -0400)]
Add some more checks to the binding tests

14 years agoRemove a redundant branch
Matthias Clasen [Mon, 5 Jul 2010 23:48:04 +0000 (19:48 -0400)]
Remove a redundant branch

Since the name has been interned already at pspec creation time,
we can just call g_intern_string().

14 years agoRemove cases of ;;
Matthias Clasen [Mon, 5 Jul 2010 23:45:55 +0000 (19:45 -0400)]
Remove cases of ;;

14 years agoTest charset conversion with fallbacks
Matthias Clasen [Mon, 5 Jul 2010 23:33:05 +0000 (19:33 -0400)]
Test charset conversion with fallbacks

14 years agoFix the get_property implementation for GSettings::schema
Matthias Clasen [Mon, 5 Jul 2010 19:54:11 +0000 (15:54 -0400)]
Fix the get_property implementation for GSettings::schema

14 years agoAdd several more settings tests
Matthias Clasen [Mon, 5 Jul 2010 19:53:58 +0000 (15:53 -0400)]
Add several more settings tests

14 years agoSmall documentation addition
Matthias Clasen [Mon, 5 Jul 2010 19:53:21 +0000 (15:53 -0400)]
Small documentation addition

14 years agoFix icons test to compile
Matthias Clasen [Mon, 5 Jul 2010 16:08:29 +0000 (12:08 -0400)]
Fix icons test to compile

14 years agoTest enum mapping
Matthias Clasen [Mon, 5 Jul 2010 16:08:17 +0000 (12:08 -0400)]
Test enum mapping

14 years agoMore stream tests
Matthias Clasen [Mon, 5 Jul 2010 15:38:31 +0000 (11:38 -0400)]
More stream tests

14 years agoAdd more checks
Matthias Clasen [Mon, 5 Jul 2010 15:13:36 +0000 (11:13 -0400)]
Add more checks

14 years agoAdd some buffered output tests
Matthias Clasen [Mon, 5 Jul 2010 15:12:49 +0000 (11:12 -0400)]
Add some buffered output tests

14 years agoAdd some more tests for the buffered read code
Matthias Clasen [Mon, 5 Jul 2010 12:28:54 +0000 (08:28 -0400)]
Add some more tests for the buffered read code

14 years agoTrivial cleanups
Matthias Clasen [Mon, 5 Jul 2010 11:40:38 +0000 (07:40 -0400)]
Trivial cleanups

14 years agoAdd --disable-Bsymbolic flag
Ryan Lortie [Mon, 5 Jul 2010 17:10:28 +0000 (13:10 -0400)]
Add --disable-Bsymbolic flag

14 years agoMisc test additions
Matthias Clasen [Mon, 5 Jul 2010 07:09:36 +0000 (03:09 -0400)]
Misc test additions

14 years agoFix a typo
Matthias Clasen [Mon, 5 Jul 2010 06:36:48 +0000 (02:36 -0400)]
Fix a typo

14 years agoCleanups
Matthias Clasen [Mon, 5 Jul 2010 04:56:12 +0000 (00:56 -0400)]
Cleanups

14 years agoAdd some more tests
Matthias Clasen [Mon, 5 Jul 2010 03:42:07 +0000 (23:42 -0400)]
Add some more tests

14 years agoAdd some GAppLaunchContext tests
Matthias Clasen [Mon, 5 Jul 2010 03:41:40 +0000 (23:41 -0400)]
Add some GAppLaunchContext tests

14 years agoAdd the new tests to the correct variable
Matthias Clasen [Mon, 5 Jul 2010 03:40:42 +0000 (23:40 -0400)]
Add the new tests to the correct variable

14 years agoAdd some contenttype tests
Matthias Clasen [Mon, 5 Jul 2010 02:27:01 +0000 (22:27 -0400)]
Add some contenttype tests

14 years agoAdd a test for skipping
Matthias Clasen [Mon, 5 Jul 2010 00:50:50 +0000 (20:50 -0400)]
Add a test for skipping

14 years agoAdd some CharsetConverter tests
Matthias Clasen [Mon, 5 Jul 2010 00:49:29 +0000 (20:49 -0400)]
Add some CharsetConverter tests

14 years agoMove charset conversion tests to the test framework
Matthias Clasen [Sat, 3 Jul 2010 17:43:25 +0000 (13:43 -0400)]
Move charset conversion tests to the test framework

14 years agoAdd some more appinfo tests
Matthias Clasen [Sat, 3 Jul 2010 16:49:46 +0000 (12:49 -0400)]
Add some more appinfo tests

14 years agoUpdated Spanish translation
Jorge González [Sun, 4 Jul 2010 11:49:55 +0000 (13:49 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Sat, 3 Jul 2010 11:48:56 +0000 (13:48 +0200)]
Updated Spanish translation

14 years agoMove GZlibConverter tests
Matthias Clasen [Sat, 3 Jul 2010 07:31:24 +0000 (03:31 -0400)]
Move GZlibConverter tests

14 years agoAdd tests for GIcon
Matthias Clasen [Sat, 3 Jul 2010 07:31:07 +0000 (03:31 -0400)]
Add tests for GIcon

14 years agoGDBus: Rename "Introspection XML" section to "D-Bus Introspection Data"
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>
14 years agoBug 623407 - g_keyfile_settings_backend_new crash
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.

14 years agoBug 623402 - schema compiler reports wrong line
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.

14 years agoBug 623401 - schema compiler: process enums first
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.

14 years agoGDBus: Hold lock when printing debug messages
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>
14 years agoGDBus: make G_DBUS_DEBUG=authentication work again
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>
14 years agoUpdate headers being installed in the Visual Studio project
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.

14 years agoBug 622124 - implement flags for GSettings
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.

14 years agoUpdated Spanish translation
Jorge González [Thu, 1 Jul 2010 19:39:37 +0000 (21:39 +0200)]
Updated Spanish translation

14 years agoBug 620913 – More control with G_DBUS_DEBUG
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>
14 years agoGDBus: Fix bug in child enumeration
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>
14 years agoUse "unix:" instead of tcp in test for now...
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.

14 years agoGDBus: plug some memory leaks
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>
14 years agoGSettings: accept <flags> as an alias for <enum>
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...

14 years agogsettings.m4: add support for enums
Ryan Lortie [Wed, 30 Jun 2010 17:12:19 +0000 (13:12 -0400)]
gsettings.m4: add support for enums

14 years agoGDBus: Take a reference to the GDBusInterfaceInfo object
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>
14 years agoGDBus: Rename `introspection_data' parameter to `interface_info'
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>
14 years agoBug 623142 – Ensure ::new-connection runs before processing D-Bus messages
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>
14 years agog_settings_list_keys() -> _list_items()
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.

14 years agoGSettings: add <override>, tests, modify output
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.

14 years agoGSettings: new <schema> tags 'extends', 'list-of'
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.

14 years agoglib-compile-schemas: fix small leak
Ryan Lortie [Tue, 29 Jun 2010 18:40:44 +0000 (14:40 -0400)]
glib-compile-schemas: fix small leak

14 years agoBug 623143 – Never require non-closed connections
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>
14 years agoBug 622294 - More annotations for GVariant
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).

14 years ago[autogen.sh] Support NOCONFIGURE (from gnome-common)
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.

14 years agoUpdated Spanish translation
Jorge González [Mon, 28 Jun 2010 18:57:31 +0000 (20:57 +0200)]
Updated Spanish translation

14 years agoBug 622565 - compile-schemas fails when no schemas
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

14 years agoGSettings: peek instead of ref/unref enum class
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.

14 years agoBug 622127 - GSettings extended key validation
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.

14 years agoUpdated Hebrew translation.
Yaron Shahrabani [Mon, 28 Jun 2010 09:28:47 +0000 (12:28 +0300)]
Updated Hebrew translation.

14 years agoFix a alloc/free mismatch
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.

14 years agoFilter out child schema entries when listing keys
Matthias Clasen [Sun, 27 Jun 2010 20:31:53 +0000 (16:31 -0400)]
Filter out child schema entries when listing keys

14 years agoImplement bash completion for gsettings
Matthias Clasen [Sun, 27 Jun 2010 20:00:20 +0000 (16:00 -0400)]
Implement bash completion for gsettings

14 years agoGSettings: Don't free value before using its type
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).

14 years agoAdd PCRE_EXP_DECL to pcre_callout declaration
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.

14 years agoUpdated Spanish translation
Jorge González [Sat, 26 Jun 2010 08:14:52 +0000 (10:14 +0200)]
Updated Spanish translation

14 years agoBug 622128 - retry with default for failed mapping
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.

14 years ago[gbinding] Move argument reference out of first column
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.

14 years agoHack up glib/tests/array-test to not actually malloc 2G
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

14 years agoversion.bump()
Ryan Lortie [Thu, 24 Jun 2010 17:32:26 +0000 (13:32 -0400)]
version.bump()

14 years agoRelease glib 2.25.10 2.25.10
Ryan Lortie [Thu, 24 Jun 2010 17:18:44 +0000 (13:18 -0400)]
Release glib 2.25.10