platform/upstream/glib.git
14 years agoBug 623810 – Message serialization bug
David Zeuthen [Thu, 15 Jul 2010 16:19:24 +0000 (12:19 -0400)]
Bug 623810 – Message serialization bug

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoAdd annotations for g_variant_new_strv and g_variant_get_strv
Tomeu Vizoso [Thu, 15 Jul 2010 15:05:00 +0000 (17:05 +0200)]
Add annotations for g_variant_new_strv and g_variant_get_strv

14 years agoAdd annotations to g_dbus_proxy_new_sync
Tomeu Vizoso [Thu, 15 Jul 2010 13:32:45 +0000 (15:32 +0200)]
Add annotations to g_dbus_proxy_new_sync

14 years agoUpdate Simplified Chinese translation.
Aron Xu [Thu, 15 Jul 2010 09:56:14 +0000 (17:56 +0800)]
Update Simplified Chinese translation.

14 years agopo: Updated Romanian translation
Lucian Adrian Grijincu [Wed, 14 Jul 2010 23:10:43 +0000 (02:10 +0300)]
po: Updated Romanian translation

14 years ago[i18n] Updated German translation
Mario Blättermann [Wed, 14 Jul 2010 21:06:18 +0000 (23:06 +0200)]
[i18n] Updated German translation

14 years agoGDBusConnection: copy object and subtree virtual tables
David Zeuthen [Wed, 14 Jul 2010 18:46:12 +0000 (14:46 -0400)]
GDBusConnection: copy object and subtree virtual tables

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBusConnection: Fix up g_dbus_connection_close()
David Zeuthen [Wed, 14 Jul 2010 16:37:32 +0000 (12:37 -0400)]
GDBusConnection: Fix up g_dbus_connection_close()

... so it is async, cancelable and returns an error. Also provide a
synchronous version.

This is an API/ABI break but it is expected that only very few
applications use this API.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBusMessage: Make endianness for D-Bus messages match host byte order
David Zeuthen [Wed, 14 Jul 2010 15:39:22 +0000 (11:39 -0400)]
GDBusMessage: Make endianness for D-Bus messages match host byte order

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoBug 623815 – Don't check sender for GDBusProxy objects where name is not set
David Zeuthen [Wed, 14 Jul 2010 15:14:58 +0000 (11:14 -0400)]
Bug 623815 – Don't check sender for GDBusProxy objects where name is not set

Based on a patch from Peng Huang <shawn.p.huang@gmail.com>, thanks!

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoMake default-quit not apply if register=FALSE
Colin Walters [Fri, 18 Jun 2010 18:19:57 +0000 (14:19 -0400)]
Make default-quit not apply if register=FALSE

Callers who are using g_application_unregistered_try_new are
likely wanting to continue doing something else if _register()
fails.  Change the semantics so that passing register=FALSE
unsets default-quit as well.  This means that a later _register()
call will send Activate but continue the process.

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

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Wed, 14 Jul 2010 11:28:34 +0000 (19:28 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years agodocs: xi:include the annotation glossary to kill warnings and make them work
Stefan Kost [Wed, 14 Jul 2010 08:56:41 +0000 (11:56 +0300)]
docs: xi:include the annotation glossary to kill warnings and make them work

14 years agoClean autotools config a bit
Javier Jardón [Tue, 13 Jul 2010 03:05:48 +0000 (05:05 +0200)]
Clean autotools config a bit

New requirements:
autoconf >= 2.62
automake >= 1.10
libtool >= 2.2

14 years agorename configure.in to configure.ac
Ryan Lortie [Tue, 13 Jul 2010 15:59:16 +0000 (11:59 -0400)]
rename configure.in to configure.ac

14 years agoRemove GUnixVolumeMonitor, GUnixMount from docs
Ryan Lortie [Tue, 13 Jul 2010 13:24:16 +0000 (09:24 -0400)]
Remove GUnixVolumeMonitor, GUnixMount from docs

David says that they're supposed to be private.

14 years agogio/ docs fixup
Ryan Lortie [Mon, 12 Jul 2010 22:30:14 +0000 (18:30 -0400)]
gio/ docs fixup

14 years agoMore docs fixes
Ryan Lortie [Mon, 12 Jul 2010 21:46:17 +0000 (17:46 -0400)]
More docs fixes

  Remove the g*alias.h from the ignore lists

  Remove other old files from ignore lists

  Clean up gobject docs

14 years agoMore gtk-doc cleanups for glib/
Ryan Lortie [Mon, 12 Jul 2010 21:32:44 +0000 (17:32 -0400)]
More gtk-doc cleanups for glib/

14 years agotrivial whitespace fix
Ryan Lortie [Mon, 12 Jul 2010 21:31:03 +0000 (17:31 -0400)]
trivial whitespace fix

14 years agoFix some glib docs warnings
Ryan Lortie [Mon, 12 Jul 2010 20:37:56 +0000 (16:37 -0400)]
Fix some glib docs warnings

Remove some symbols from glib-sections.txt that gtk-doc has no idea
about.

Add proper callback typedefs for GTester (gtk-doc dislikes inline
function types).

Fix some other minor issues.

14 years agoDon't return FALSE when a pointer is expected
Matthias Clasen [Mon, 12 Jul 2010 11:50:36 +0000 (07:50 -0400)]
Don't return FALSE when a pointer is expected

Pointed out in bug 623956

14 years agoBump gtk-doc dependency to 1.15
Ryan Lortie [Mon, 12 Jul 2010 19:30:26 +0000 (15:30 -0400)]
Bump gtk-doc dependency to 1.15

Use the multiple source-directory support contained therein.

14 years agomove glibconfig.h to glib/
Ryan Lortie [Mon, 12 Jul 2010 01:08:42 +0000 (21:08 -0400)]
move glibconfig.h to glib/

14 years agoDon't attempt to build dtrace support on OS X
Colin Walters [Fri, 25 Jun 2010 13:37:06 +0000 (09:37 -0400)]
Don't attempt to build dtrace support on OS X

Apparently the OS X "dtrace" command is different from the Sun one,
which is what Linux supports.  Since I don't have access to an OS X
machine to test build patches on, simply disable dtrace on OS X
for now.

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

14 years agoAdded Kazakh translation for Kazakh
Baurzhan Muftakhidinov [Mon, 12 Jul 2010 13:19:45 +0000 (16:19 +0300)]
Added Kazakh translation for Kazakh

14 years agobump the version
Ryan Lortie [Sun, 11 Jul 2010 16:51:54 +0000 (12:51 -0400)]
bump the version

14 years agoThis is glib 2.25.11 2.25.11
Ryan Lortie [Sun, 11 Jul 2010 16:51:33 +0000 (12:51 -0400)]
This is glib 2.25.11

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sun, 11 Jul 2010 13:51:04 +0000 (15:51 +0200)]
Updated Norwegian bokmål translation

14 years agoMove main loop docs inline
Matthias Clasen [Sun, 11 Jul 2010 03:53:36 +0000 (23:53 -0400)]
Move main loop docs inline

14 years agoFix a typo
Matthias Clasen [Sun, 11 Jul 2010 02:30:04 +0000 (22:30 -0400)]
Fix a typo

14 years agoMove docs for atomic operations inline
Matthias Clasen [Sun, 11 Jul 2010 01:51:34 +0000 (21:51 -0400)]
Move docs for atomic operations inline

14 years agoMove GAsyncQueue docs inline
Matthias Clasen [Sun, 11 Jul 2010 01:26:28 +0000 (21:26 -0400)]
Move GAsyncQueue docs inline

14 years agoNEWS for the pending release
Ryan Lortie [Sun, 11 Jul 2010 03:28:30 +0000 (23:28 -0400)]
NEWS for the pending release

14 years agoAnnotate all custom GIO GSource using g_source_set_name
Colin Walters [Sun, 11 Jul 2010 00:09:34 +0000 (20:09 -0400)]
Annotate all custom GIO GSource using g_source_set_name

Naming the sources allows easier debugging with e.g. SystemTap
probes.

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

14 years agouse proper feature test macros for isnan
Matthias Clasen [Sun, 11 Jul 2010 00:00:49 +0000 (20:00 -0400)]
use proper feature test macros for isnan

Problem pointed out in bug 581354

14 years agoAdd ACLOCAL_AMFLAGS to Makefile.am
Matthias Clasen [Sat, 10 Jul 2010 23:46:40 +0000 (19:46 -0400)]
Add ACLOCAL_AMFLAGS to Makefile.am

Patch by Vincent Untz, bug 570036

14 years agoOne more dubious return
Matthias Clasen [Sat, 10 Jul 2010 23:16:27 +0000 (19:16 -0400)]
One more dubious return

14 years agoGVariant: fix some more leaks in error cases
Ryan Lortie [Sat, 10 Jul 2010 21:54:08 +0000 (17:54 -0400)]
GVariant: fix some more leaks in error cases

14 years agomove the g_free() from the last commit down
Ryan Lortie [Sat, 10 Jul 2010 21:45:51 +0000 (17:45 -0400)]
move the g_free() from the last commit down

It is needed for the error message...

14 years agoMinor cleanup
Matthias Clasen [Sat, 10 Jul 2010 22:04:22 +0000 (18:04 -0400)]
Minor cleanup

14 years agoAdd a GAppInfoCreate flag for startup-notification
Matthias Clasen [Sat, 10 Jul 2010 21:57:45 +0000 (17:57 -0400)]
Add a GAppInfoCreate flag for startup-notification

Using this flag, it will be possible to launch apps without a
desktop file, in the same way that gdk_spawn_... lets you do.

Requested in bug 599223.

14 years agoFix sparse warnings
Matthias Clasen [Sat, 10 Jul 2010 21:21:32 +0000 (17:21 -0400)]
Fix sparse warnings

These were listed in bug 623955

14 years agoChain up in g_settings_finalize
Matthias Clasen [Sat, 10 Jul 2010 21:12:31 +0000 (17:12 -0400)]
Chain up in g_settings_finalize

Requested in bug 623954

14 years agoTurn on glibc malloc checking features for make check
Matthias Clasen [Sat, 10 Jul 2010 21:06:41 +0000 (17:06 -0400)]
Turn on glibc malloc checking features for make check

14 years agoGVariant: don't leak during type inferencing
Ryan Lortie [Sat, 10 Jul 2010 20:56:51 +0000 (16:56 -0400)]
GVariant: don't leak during type inferencing

14 years agoUpdated Spanish translation
Jorge González [Sat, 10 Jul 2010 09:03:52 +0000 (11:03 +0200)]
Updated Spanish translation

14 years agoFix some leaks in the inotify code
Matthias Clasen [Fri, 9 Jul 2010 12:33:27 +0000 (08:33 -0400)]
Fix some leaks in the inotify code

Also avoid creating some unused objects. Patch by Carlos Garnacho,
bug 613057

14 years agoAdapt to recent MLS changes
Matthias Clasen [Fri, 9 Jul 2010 11:24:08 +0000 (07:24 -0400)]
Adapt to recent MLS changes

g_file_query_info returns non-NULL more often now.

14 years agoRemove dead links from the IEEE float documentation
Matthias Clasen [Thu, 8 Jul 2010 23:52:36 +0000 (19:52 -0400)]
Remove dead links from the IEEE float documentation

14 years agoImprove the long description of GString
Matthias Clasen [Thu, 8 Jul 2010 23:37:31 +0000 (19:37 -0400)]
Improve the long description of GString

It is more similar to a Java StringBuffer than to a C string.
See bug 612439.

14 years agoDocument NULL shortcut to g_value_array_insert etc.
Will Thompson [Thu, 8 Jul 2010 23:30:53 +0000 (19:30 -0400)]
Document NULL shortcut to g_value_array_insert etc.

You can pass a NULL GValue * to any of g_value_array_insert, _prepend or
_append to add a new, uninitialized value. This is a very useful
shortcut, and it should be documented rather than left languishing in a
comment in the implementation.

Fixes Gnome bug #552363.

14 years agoImprove some GNode docs
Matthias Clasen [Thu, 8 Jul 2010 23:26:25 +0000 (19:26 -0400)]
Improve some GNode docs

See bug 561248

14 years agoExpand the g_sprintf docs
Matthias Clasen [Thu, 8 Jul 2010 23:23:42 +0000 (19:23 -0400)]
Expand the g_sprintf docs

As requested in bug 576833.

14 years agoAdd a note about l10n to the g_strconcat docs
Matthias Clasen [Thu, 8 Jul 2010 23:03:18 +0000 (19:03 -0400)]
Add a note about l10n to the g_strconcat docs

As requested in bug 576854

14 years agoMove uri conversion functions to a better place in the docs
Matthias Clasen [Thu, 8 Jul 2010 21:38:47 +0000 (17:38 -0400)]
Move uri conversion functions to a better place in the docs

g_filename_from/to_uri are better off in the section called
"URI functions". Requested in bug 582227.

14 years agoUpdated Spanish translation
Jorge González [Thu, 8 Jul 2010 21:25:01 +0000 (23:25 +0200)]
Updated Spanish translation

14 years agoComment out an unused function
Matthias Clasen [Thu, 8 Jul 2010 20:32:08 +0000 (16:32 -0400)]
Comment out an unused function

it is causing warnings, so it needs to die...bug 622600

14 years agoFix an oversight in the previous commit
Matthias Clasen [Thu, 8 Jul 2010 20:24:44 +0000 (16:24 -0400)]
Fix an oversight in the previous commit

14 years agoUse glib infrastructure to parse debug flags
Matthias Clasen [Thu, 8 Jul 2010 20:22:16 +0000 (16:22 -0400)]
Use glib infrastructure to parse debug flags

Proposed in bug 623319

14 years agoBe a bit more picky when deciding if mounts are internal
Matthias Clasen [Thu, 8 Jul 2010 19:18:05 +0000 (15:18 -0400)]
Be a bit more picky when deciding if mounts are internal

Complained about in bug 623780.

14 years agoA little more correctness in formatting pids
Matthias Clasen [Thu, 8 Jul 2010 19:11:24 +0000 (15:11 -0400)]
A little more correctness in formatting pids

Requested in bug 623772

14 years agoEscape arguments when putting together a cmdline
Matthias Clasen [Thu, 8 Jul 2010 18:58:33 +0000 (14:58 -0400)]
Escape arguments when putting together a cmdline

See bug 623770

14 years agoxinclude the dtd
Matthias Clasen [Thu, 8 Jul 2010 18:38:55 +0000 (14:38 -0400)]
xinclude the dtd

Keeping two copies in sync manually gets tiresome.

14 years agoUpdate the dtd to match the implementation
Matthias Clasen [Thu, 8 Jul 2010 18:29:17 +0000 (14:29 -0400)]
Update the dtd to match the implementation

See bug 623720

14 years agoHandle MLS selinux policy better
Matthias Clasen [Thu, 8 Jul 2010 18:19:08 +0000 (14:19 -0400)]
Handle MLS selinux policy better

Following the behaviour of ls here, we should return at least the
file name, if we can't get any other information about a file. To
do this, handle EACCESS on stat() calls.

Patch by Tomas Bzatek, see bug 623692

14 years agoCheck for zlib using pkg-config
Matthias Clasen [Thu, 8 Jul 2010 18:12:28 +0000 (14:12 -0400)]
Check for zlib using pkg-config

Based on a patch by Felipe Contreras, see bug 623473.

14 years agoUse proper variables
Matthias Clasen [Thu, 8 Jul 2010 15:33:21 +0000 (11:33 -0400)]
Use proper variables

And also make sure we don't read garbage.

14 years agobase64: remove unnecessary assertions
Ryan Lortie [Thu, 8 Jul 2010 02:00:43 +0000 (22:00 -0400)]
base64: remove unnecessary assertions

Allow base64 encoding/decoding of empty strings.

14 years agoforgotten file
Matthias Clasen [Thu, 8 Jul 2010 00:36:28 +0000 (20:36 -0400)]
forgotten file

14 years agogio/: fully remove gioalias hacks
Ryan Lortie [Wed, 7 Jul 2010 23:53:22 +0000 (19:53 -0400)]
gio/: fully remove gioalias hacks

14 years agogobject/: fully remove gobjectalias hacks
Ryan Lortie [Wed, 7 Jul 2010 23:40:48 +0000 (19:40 -0400)]
gobject/: fully remove gobjectalias hacks

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