platform/upstream/glib.git
13 years agoGDBusMessage: Fix bug when deserializing a message
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>
13 years agoDistcheck fix
Christian Persch [Thu, 17 Jun 2010 21:44:25 +0000 (23:44 +0200)]
Distcheck fix

Add a missing symbol to gobject.symbols.

13 years agoMake g_settings_sync() a proper prototype.
Ryan Lortie [Thu, 17 Jun 2010 20:56:09 +0000 (16:56 -0400)]
Make g_settings_sync() a proper prototype.

13 years agoFix the build
Matthias Clasen [Thu, 17 Jun 2010 20:36:58 +0000 (16:36 -0400)]
Fix the build

13 years agoUpdates
Matthias Clasen [Thu, 17 Jun 2010 20:13:29 +0000 (16:13 -0400)]
Updates

13 years agoGDBus: Complain via g_warning() if an invalid message is received
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>
13 years agoGDBusMessage: Properly check error and bail if set
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>
13 years agoDocumentation fixups
Matthias Clasen [Thu, 17 Jun 2010 20:07:52 +0000 (16:07 -0400)]
Documentation fixups

13 years agofix a typo
Matthias Clasen [Thu, 17 Jun 2010 19:51:37 +0000 (15:51 -0400)]
fix a typo

13 years agoFix GApplication for the G_TYPE_VARIANT change
Christian Persch [Thu, 17 Jun 2010 19:40:47 +0000 (21:40 +0200)]
Fix GApplication for the G_TYPE_VARIANT change

13 years agoUpdate api docs to current api
Matthias Clasen [Thu, 17 Jun 2010 19:29:45 +0000 (15:29 -0400)]
Update api docs to current api

13 years agoCatch up with G_TYPE_VARIANT changes
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>
13 years agoFix a typo
Matthias Clasen [Thu, 17 Jun 2010 19:07:08 +0000 (15:07 -0400)]
Fix a typo

13 years agoGSettings: remove "context" from backend too.
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.

13 years agoAdd fundamental type and pspec for GVariant
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.

13 years agoRevert "GVariant: add g_variant_default_value()"
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.

13 years agoOnly run the schema compiler from the test cases
Ryan Lortie [Thu, 17 Jun 2010 18:33:50 +0000 (14:33 -0400)]
Only run the schema compiler from the test cases

13 years agoBug 621266 - GSettings "context" clarification
Ryan Lortie [Thu, 17 Jun 2010 18:05:40 +0000 (14:05 -0400)]
Bug 621266  - GSettings "context" clarification

Remove the concept of "context" in favour of dealing with
GSettingsBackend directly.

13 years agoBug 621905 – Assume a ref when doing async work
Cosimo Cecchi [Thu, 17 Jun 2010 16:26:15 +0000 (18:26 +0200)]
Bug 621905 – Assume a ref when doing async work

When asynchronously acquiring the DBus connection, assume a reference to
the proxy object, to avoid destroying it in the middle of the operation.

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

13 years agoGSettings-related distcheck fixups
Ryan Lortie [Thu, 17 Jun 2010 14:50:47 +0000 (10:50 -0400)]
GSettings-related distcheck fixups

13 years agoAdd 'if' that was absorbed by $(AM_V_GEN)
Ryan Lortie [Thu, 17 Jun 2010 13:38:39 +0000 (09:38 -0400)]
Add 'if' that was absorbed by $(AM_V_GEN)

From commit 1b8ee5196eb8ed684b0ee0d2f0d26e6bd82656af

13 years agoMore GSettings doc fixups
Ryan Lortie [Thu, 17 Jun 2010 12:57:19 +0000 (08:57 -0400)]
More GSettings doc fixups

13 years ago<alias> takes mandatory target='' arg
Ryan Lortie [Thu, 17 Jun 2010 12:08:28 +0000 (08:08 -0400)]
<alias> takes mandatory target='' arg

13 years agoGSettings: Fix comment formatting, whitespace.
Ryan Lortie [Thu, 17 Jun 2010 12:06:52 +0000 (08:06 -0400)]
GSettings: Fix comment formatting, whitespace.

13 years agoAdd new api
Matthias Clasen [Thu, 17 Jun 2010 05:51:23 +0000 (01:51 -0400)]
Add new api

13 years agoAdd some schema examples
Matthias Clasen [Thu, 17 Jun 2010 05:38:14 +0000 (01:38 -0400)]
Add some schema examples

13 years agoTypo fix
Matthias Clasen [Thu, 17 Jun 2010 04:45:43 +0000 (00:45 -0400)]
Typo fix

13 years agoUpdate the dtd to match the schema parser
Matthias Clasen [Thu, 17 Jun 2010 04:37:12 +0000 (00:37 -0400)]
Update the dtd to match the schema parser

The aliases element was not mentioned here.

13 years agoUpdates
Matthias Clasen [Thu, 17 Jun 2010 02:42:16 +0000 (22:42 -0400)]
Updates

13 years agoGSettings: enum/choices/aliases/range test cases
Ryan Lortie [Thu, 17 Jun 2010 04:03:44 +0000 (00:03 -0400)]
GSettings: enum/choices/aliases/range test cases

Fix a small bug that one of the tests uncovered.

13 years agomove GSettings(Backend) to giotypes.h
Ryan Lortie [Wed, 16 Jun 2010 22:49:20 +0000 (18:49 -0400)]
move GSettings(Backend) to giotypes.h

13 years agoBug 621319 - more leaked GVariants in GSettings
Ryan Lortie [Wed, 16 Jun 2010 22:36:24 +0000 (18:36 -0400)]
Bug 621319 - more leaked GVariants in GSettings

Caught by Felix Riemann.

13 years agoGVariant serialiser: fix small type error
Ryan Lortie [Wed, 16 Jun 2010 22:22:48 +0000 (18:22 -0400)]
GVariant serialiser: fix small type error

13 years agoGSettings: major refactor. Add enums, range.
Ryan Lortie [Mon, 14 Jun 2010 21:29:41 +0000 (17:29 -0400)]
GSettings: major refactor.  Add enums, range.

13 years agoGVariant: add g_variant_default_value()
Ryan Lortie [Wed, 16 Jun 2010 19:56:51 +0000 (15:56 -0400)]
GVariant: add g_variant_default_value()

Returns various kinds of false, zero, empty arrays, etc.

13 years agoTypo fix
Christian Persch [Wed, 16 Jun 2010 16:47:20 +0000 (18:47 +0200)]
Typo fix

13 years agoTypo fix
Christian Persch [Wed, 16 Jun 2010 15:48:02 +0000 (17:48 +0200)]
Typo fix

13 years agoRework GApplication API to use GInitable
Colin Walters [Wed, 16 Jun 2010 04:18:09 +0000 (00:18 -0400)]
Rework GApplication API to use GInitable

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

13 years agoAdd gdbus-proxy-well-known-name to the ignore file
Emmanuele Bassi [Wed, 16 Jun 2010 14:09:33 +0000 (15:09 +0100)]
Add gdbus-proxy-well-known-name to the ignore file

13 years agobinding: Use a hash table
Emmanuele Bassi [Wed, 16 Jun 2010 14:08:10 +0000 (15:08 +0100)]
binding: Use a hash table

Since an object instance might have a lot of bindings, using a list
might become a performance issue when removing them. Using a simple
hash table guarantees constant time lookup, which is the most common
operation.

13 years agotests: Add a chain binding
Emmanuele Bassi [Wed, 16 Jun 2010 13:47:06 +0000 (14:47 +0100)]
tests: Add a chain binding

Test the case with a chain like A → B, B → C, and what happens when
switching to a direct A → C link.

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

13 years agoProperly initialize GError
Matthias Clasen [Wed, 16 Jun 2010 02:06:56 +0000 (22:06 -0400)]
Properly initialize GError

Pointed out by Florian Müllner in bug #621702

13 years agoSprinkle some $(AM_V_GEN) around to make the build more silent.
Christian Persch [Wed, 16 Jun 2010 02:01:02 +0000 (22:01 -0400)]
Sprinkle some $(AM_V_GEN) around to make the build more silent.

13 years agoCorrect some documentation mistakes in gunixmounts.c
Matthias Clasen [Wed, 16 Jun 2010 01:57:57 +0000 (21:57 -0400)]
Correct some documentation mistakes in gunixmounts.c

Pointed out by Ross Burton in bug #618904

13 years agogobject: Add GBinding
Emmanuele Bassi [Fri, 4 Jun 2010 15:17:15 +0000 (16:17 +0100)]
gobject: Add GBinding

GBinding is a simple, opaque object that represents a binding between a
property on a GObject instance (source) and property on another GObject
instance (target).

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

13 years agoIntroduce g_object_notify_by_pspec()
Damien Lespiau [Sat, 10 Apr 2010 14:50:40 +0000 (15:50 +0100)]
Introduce g_object_notify_by_pspec()

g_object_notify_by_pspec() will emit the "notify" signal on the given
pspec, short-circuiting the hash table lookup needed by
g_object_notify(). The suggested and documented way of using
g_object_notify_by_pspec() is similar to the way of emitting signals
with their ID.

Emission tests (with no handler attached to the notify signal) show a
10-15% speedup over using g_object_notify().

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

13 years agoPrevent division by zero if no tests
Matthias Clasen [Tue, 15 Jun 2010 06:01:16 +0000 (02:01 -0400)]
Prevent division by zero if no tests

13 years agoForgotten file
Matthias Clasen [Tue, 15 Jun 2010 05:50:15 +0000 (01:50 -0400)]
Forgotten file

13 years agoAdd subunit support to gtester-report
Robert Collins [Tue, 15 Jun 2010 05:49:44 +0000 (01:49 -0400)]
Add subunit support to gtester-report

This patch adds subunit support to gtester-report via a -s switch. Subunit
(https://launchpad.net/subunit) is a language neutral test activity protocol.
This can be used to integrate gtester tests with the Hudson CI tool amongst
other things.

Bug #611869.

13 years agoUse optparse to parse gtester-report commandline options
Robert Collins [Tue, 15 Jun 2010 05:37:14 +0000 (01:37 -0400)]
Use optparse to parse gtester-report commandline options

See bug #611778.

13 years ago Add package and version to the test report XML
Emmanuele Bassi [Tue, 15 Jun 2010 05:31:18 +0000 (01:31 -0400)]
 Add package and version to the test report XML

13 years agoReword a doc comment
Matthias Clasen [Tue, 15 Jun 2010 04:50:36 +0000 (00:50 -0400)]
Reword a doc comment

To take out some awkward wording.

13 years agoLet GLIB_SETTINGS macro use glib-compile-schemas from PATH when cross compiling
Hib Eris [Tue, 15 Jun 2010 04:39:46 +0000 (00:39 -0400)]
Let GLIB_SETTINGS macro use glib-compile-schemas from PATH when cross compiling

See bug #621172

13 years agoUse native glib-compile-schemas when cross compiling
Hib Eris [Tue, 15 Jun 2010 04:38:35 +0000 (00:38 -0400)]
Use native glib-compile-schemas when cross compiling

13 years agoSwitch to using variants for timestamps, split out signals
Colin Walters [Tue, 8 Jun 2010 20:25:33 +0000 (16:25 -0400)]
Switch to using variants for timestamps, split out signals

Like how we're handling activation, use GVariant for timestamps.  To
avoid polluting the GtkApplication API with GVariants, we rename the
GApplication signals to "quit-with-data" and "action-with-data".
GtkApplication will then wrap those as just "quit" and "action".

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

13 years agoAdd --xml to gdbus-tool to print raw introspected XML
Christian Persch [Sun, 13 Jun 2010 13:16:33 +0000 (15:16 +0200)]
Add --xml to gdbus-tool to print raw introspected XML

Bug #621442.

13 years agoAvoid a race in application registration
Matthias Clasen [Sat, 12 Jun 2010 22:40:45 +0000 (18:40 -0400)]
Avoid a race in application registration

We need to register the object before taking the name.
Remove the workarounds for this race from the test suite.

13 years agoUpdated Galician translations
Fran Diéguez [Sat, 12 Jun 2010 15:47:40 +0000 (17:47 +0200)]
Updated Galician translations

13 years agoAccept no-reply errors
Matthias Clasen [Sat, 12 Jun 2010 05:55:25 +0000 (01:55 -0400)]
Accept no-reply errors

This can happen if the app quits before the dbus reply can be
sent out.

13 years agoMake the tests not fall over every other time
Matthias Clasen [Sat, 12 Jun 2010 03:21:49 +0000 (23:21 -0400)]
Make the tests not fall over every other time

13 years agoBug 621213 – GDBusProxy and well-known names
David Zeuthen [Fri, 11 Jun 2010 19:45:18 +0000 (15:45 -0400)]
Bug 621213 – GDBusProxy and well-known names

Allow constructing a GDBusProxy for well-known names as discussed here
http://mail.gnome.org/archives/gtk-devel-list/2009-October/msg00075.html
including test cases.

Make it possible to create a GDBusProxy for a GBusType instead of a
GDBusConnection. This requires G_BUS_TYPE_NONE so add that too.

Nuke g_bus_watch_proxy() since one can now more or less use GDBusProxy
for this.

Port gdbus-example-watch-proxy to this new API and include this
example in the GDBusProxy doc page.

Also nuke the GType parameter from the GDBusProxy constructors as
requested here: https://bugzilla.gnome.org/show_bug.cgi?id=621229

Also update the porting guide and other API docs for this change.

Also fix a bug in the signal dispatching code so each subscriber only
get notified once, not N times, for the same signal. Also add a test
case for this.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogitignore GApplication test-cases
Ryan Lortie [Fri, 11 Jun 2010 18:52:17 +0000 (14:52 -0400)]
gitignore GApplication test-cases

13 years agoClose memory leak in GSettings
Felix Riemann [Thu, 10 Jun 2010 22:10:05 +0000 (00:10 +0200)]
Close memory leak in GSettings

Fixes bug #621252.

13 years agoconverter streams: make code more readable
Alexander Larsson [Fri, 11 Jun 2010 07:59:56 +0000 (09:59 +0200)]
converter streams: make code more readable

The name buffer_availabile was kinda confusing, so its been renamed
to buffer_data_size() to match buffer_data().

Also I added a comment to buffer_ensure_space because its behaviour
wasn't obvious.

13 years agoUse correct offset for buffer data in GConverterOutputStream
Jürg Billeter [Fri, 28 May 2010 09:00:37 +0000 (11:00 +0200)]
Use correct offset for buffer data in GConverterOutputStream

Otherwise we overwrite already converted data in the case that more
than one call to g_converter_convert is necessary in write() or
flush().

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

13 years agoEnsure we always have some target space in GConverterOutputStream
Jürg Billeter [Thu, 27 May 2010 14:55:53 +0000 (16:55 +0200)]
Ensure we always have some target space in GConverterOutputStream

When the converter fills the whole buffer without reading all input,
we need to enlarge the buffer. Otherwise we get an assertion failure
for `outbuf_size > 0' in g_converter_convert.

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

13 years agoAdd a regression test for GConverterOutputStream corruption
Christian Dywan [Fri, 11 Jun 2010 07:46:47 +0000 (09:46 +0200)]
Add a regression test for GConverterOutputStream corruption

See bug #619945 for background

13 years agoGSettings test case fixes
Ryan Lortie [Fri, 11 Jun 2010 02:35:31 +0000 (22:35 -0400)]
GSettings test case fixes

 - call g_settings_sync()
 - fix bug #618715 by not forking if a backend is specified via
   environment variable

13 years agoAdd g_settings_sync() and use it
Ryan Lortie [Fri, 11 Jun 2010 02:30:44 +0000 (22:30 -0400)]
Add g_settings_sync() and use it

13 years ago[Gio] Merge in introspection annotations from gobject-introspection gio-2.0.c
Colin Walters [Thu, 10 Jun 2010 18:02:15 +0000 (14:02 -0400)]
[Gio] Merge in introspection annotations from gobject-introspection gio-2.0.c

This is not an exhaustive set, but covers everything we have so far.

13 years agoGSettings: store (default, options) in gvdb
Ryan Lortie [Thu, 10 Jun 2010 17:49:57 +0000 (13:49 -0400)]
GSettings: store (default, options) in gvdb

gvdb just dropped the ability to have a separate "options" field.  We
now store the options into a GVariant along with the default value.

For now, we use a small shim in GSettingsSchema in order not to touch
too much code.  A more complete rewrite will follow.

This represents a change to the schema file format with another likely
to follow.  glib-compile-schemas needs to be re-run after installing
this change.

13 years agoMerge remote branch 'gvdb/master'
Ryan Lortie [Thu, 10 Jun 2010 17:35:25 +0000 (13:35 -0400)]
Merge remote branch 'gvdb/master'

13 years agodrop "options" support
Ryan Lortie [Thu, 10 Jun 2010 17:34:56 +0000 (13:34 -0400)]
drop "options" support

13 years agoAdd _with_closures alternative functions for those in GDBus that
Tomeu Vizoso [Thu, 10 Jun 2010 16:29:23 +0000 (18:29 +0200)]
Add _with_closures alternative functions for those in GDBus that
accept more than one callback.

g_bus_own_name_with_closures
g_bus_own_name_on_connection_with_closures
g_bus_watch_name_with_closures
g_bus_watch_name_on_connection_with_closures
g_bus_watch_proxy_with_closures
g_bus_watch_proxy_on_connection_with_closures

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

13 years ago[GApplication] Tweak docs a bit
Colin Walters [Wed, 9 Jun 2010 21:17:14 +0000 (17:17 -0400)]
[GApplication] Tweak docs a bit

13 years agoRewrite apps test to ensure children are killed
Colin Walters [Wed, 9 Jun 2010 01:43:16 +0000 (21:43 -0400)]
Rewrite apps test to ensure children are killed

Create a function run_with_application that both ensures the
app is running exactly while the test is running, which most
of the tests use.  We start it beforehand, and kill it after.
This avoids having any interdependence between the tests (and
there definitely was before, because we didn't wait for
the process to actually terminate after a kill() call).

Also, open a pipe between the two, and have the child app
monitor that pipe.  If it gets closed (e.g. because the parent
died), the child exits.  This is the most reliable way to
avoid stale children; before, if we failed an assertion, the
parent would abort, and not run kill().

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

13 years agoMention GVariant format string docs from iter docs
Ryan Lortie [Thu, 10 Jun 2010 12:06:32 +0000 (08:06 -0400)]
Mention GVariant format string docs from iter docs

It's not entirely clear what @format_string in iter_next() and
iter_loop() should be.  Include a link to the GVariant format string
docs as a hint.

13 years agoPlug memory leak on Windows
Tor Lillqvist [Thu, 10 Jun 2010 08:52:25 +0000 (11:52 +0300)]
Plug memory leak on Windows

Intern the string returned from g_win32_getlocale() and then free it.
Fixes bug #621168.

13 years agoFix GApplication tests to run without a session bus
Matthias Clasen [Thu, 10 Jun 2010 03:44:13 +0000 (23:44 -0400)]
Fix GApplication tests to run without a session bus

We reuse code from the GDBus tests here to launch a session bus.

13 years agoGDBusConnection: Do not dispatch calls to unregistered objects or subtrees
David Zeuthen [Wed, 9 Jun 2010 21:57:04 +0000 (17:57 -0400)]
GDBusConnection: Do not dispatch calls to unregistered objects or subtrees

There was a slight race where we ended up calling into user code if
the user managed to unregister an object (or subtree) in the window
between

 - processing the remote call on the worker thread; and
 - continuing handling it on the user code thread (via an idle handler)

This patch fixes the problem.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBusProxy: Fix error handling in synchronous initialization codepath
David Zeuthen [Wed, 9 Jun 2010 21:08:34 +0000 (17:08 -0400)]
GDBusProxy: Fix error handling in synchronous initialization codepath

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agog_variant_builder_add_parsed: fix type error
Ryan Lortie [Wed, 9 Jun 2010 16:43:13 +0000 (12:43 -0400)]
g_variant_builder_add_parsed: fix type error

Problem caught by Juan A. Suarez Romero

13 years agoDo not do update-po at distcheck time to avoid touching files checked into version...
Richard Hughes [Wed, 9 Jun 2010 08:36:47 +0000 (09:36 +0100)]
Do not do update-po at distcheck time to avoid touching files checked into version control

13 years agoBug 621119 – GDBusProxy and objects with no properties
David Zeuthen [Wed, 9 Jun 2010 14:56:35 +0000 (10:56 -0400)]
Bug 621119 – GDBusProxy and objects with no properties

Fix proxy construction for objects with no properties in the case
where G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES isn't set.

The unfortunate side-effect here is that GDBusProxy can no longer be
used to test for "object existence", e.g. creating a GDBusProxy for
any path and interface will not fail. But that's not really a big
deal, if apps rely on that they are doing something very wrong.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix warning
Juan A. Suarez Romero [Wed, 9 Jun 2010 08:27:39 +0000 (10:27 +0200)]
Fix warning

Disable functions defined but not used.

13 years agoFix warnings
Juan A. Suarez Romero [Wed, 9 Jun 2010 08:23:39 +0000 (10:23 +0200)]
Fix warnings

Do explicit casts to avoid warnings.

13 years agoUpdated zh_CN translation.
blue dark [Wed, 9 Jun 2010 07:13:14 +0000 (15:13 +0800)]
Updated zh_CN translation.

13 years agoFix thinko
Christian Persch [Tue, 8 Jun 2010 17:40:58 +0000 (19:40 +0200)]
Fix thinko

When replacing strcmp() with g_variant_is_of_type(), remove the "== 0"
part! Found by Colin Walters.

13 years ago[GDBusConnection] Use Gio's default async implementation again
Colin Walters [Tue, 8 Jun 2010 15:21:48 +0000 (11:21 -0400)]
[GDBusConnection] Use Gio's default async implementation again

The fix was committed in git.

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

13 years agog_dbus_method_invocation_return_value consumes the floating variant
Christian Persch [Tue, 8 Jun 2010 11:40:38 +0000 (13:40 +0200)]
g_dbus_method_invocation_return_value consumes the floating variant

Bug #620953.

13 years agoSimplify variant builder
Christian Persch [Tue, 8 Jun 2010 11:36:58 +0000 (13:36 +0200)]
Simplify variant builder

Build the full return value with one builder, and don't unref the
unowned return value!

Bug #620954.

13 years agoUse g_variant_is_of_type()
Christian Persch [Tue, 8 Jun 2010 11:36:00 +0000 (13:36 +0200)]
Use g_variant_is_of_type()

... instead of strcmp()'ing the type strings.

Bug #620954.

13 years agoPlug a mem leak
Christian Persch [Tue, 8 Jun 2010 11:35:22 +0000 (13:35 +0200)]
Plug a mem leak

Bug #620954.

13 years ago[docs] Fix typos in some g_file_* functions
Javier Jardón [Tue, 8 Jun 2010 14:25:38 +0000 (16:25 +0200)]
[docs] Fix typos in some g_file_* functions

Reported by Alexander Saprykin in bug
https://bugzilla.gnome.org/show_bug.cgi?id=620947

13 years agoBump version
Matthias Clasen [Tue, 8 Jun 2010 05:10:17 +0000 (01:10 -0400)]
Bump version

13 years ago2.25.8 2.25.8
Matthias Clasen [Tue, 8 Jun 2010 05:09:06 +0000 (01:09 -0400)]
2.25.8

13 years agoAdd missing marshaler
Matthias Clasen [Tue, 8 Jun 2010 03:41:06 +0000 (23:41 -0400)]
Add missing marshaler

13 years agoFix a missing parameter in a doc comment
Matthias Clasen [Tue, 8 Jun 2010 03:28:30 +0000 (23:28 -0400)]
Fix a missing parameter in a doc comment

Pointed out by David Zeuthen.

13 years agoFix a signal signature
Matthias Clasen [Tue, 8 Jun 2010 03:27:21 +0000 (23:27 -0400)]
Fix a signal signature

GApplication::action was erroneously declaring the timestamp parameter
as int instead of uint.

13 years agoFix a misspelt doc comment
Matthias Clasen [Tue, 8 Jun 2010 02:34:07 +0000 (22:34 -0400)]
Fix a misspelt doc comment