platform/upstream/glib.git
14 years agoPlug a mem leak in get_uninitialized_connection
Christian Persch [Fri, 14 May 2010 12:22:45 +0000 (14:22 +0200)]
Plug a mem leak in get_uninitialized_connection

Free the bus address after creating the singleton.

==26308== 39,736 (10,517 direct, 29,219 indirect) bytes in 388 blocks
are definitely lost in loss record 14 of 15
==26308==    at 0x4024D2E: malloc (vg_replace_malloc.c:207)
==26308==    by 0x4079A90: g_malloc (gmem.c:135)
==26308==    by 0x4079DC8: g_malloc_n (gmem.c:252)
==26308==    by 0x4095607: g_strdup (gstrfuncs.c:102)
==26308==    by 0x4216B9A: g_dbus_address_get_for_bus_sync
(gdbusaddress.c:961)
==26308==    by 0x422A7AE: get_uninitialized_connection
(gdbusconnection.c:5241)

Bug #618622.

14 years agoPlug mem leaks in parse_value_from_blob
Christian Persch [Fri, 14 May 2010 12:15:42 +0000 (14:15 +0200)]
Plug mem leaks in parse_value_from_blob

The result of read_string() was leaked.

Bug #618615.

14 years agoPlug a mem leak
Christian Persch [Fri, 14 May 2010 22:08:29 +0000 (18:08 -0400)]
Plug a mem leak

This code leaked the return value of g_variant_get_child_value();
use g_variant_get() instead and free the iter when done.

14 years agoGDBus: Remove cached value if a property is invalidated
David Zeuthen [Fri, 14 May 2010 16:55:25 +0000 (12:55 -0400)]
GDBus: Remove cached value if a property is invalidated

Also add a test case to catch this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Fix serialization of empty arrays
David Zeuthen [Fri, 14 May 2010 16:49:51 +0000 (12:49 -0400)]
GDBus: Fix serialization of empty arrays

It turns out that we didn't observe padding (neither when reading nor
writing) for empty arrays which (apparently) is needed according to
the D-Bus spec and reference implementation. A simple test case to
provoke this behavior is as follows (notice the lack of 4 bytes worth
of padding at position 0x0064):

 Error calling dbus_message_demarshal() on this blob: org.freedesktop.DBus.Error.InvalidArgs: Message is corrupted (Alignment padding not null)
 0000: 6c 01 00 01  2e 00 00 00  41 00 00 00  37 00 00 00    l.......A...7...
 0010: 08 01 67 00  08 73 61 7b  73 76 7d 61  73 00 00 00    ..g..sa{sv}as...
 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  11 00 00 00  30 31 32 33    Member......0123
 0050: 34 35 36 37  38 39 30 31  32 33 34 35  36 00 00 00    4567890123456...
 0060: 00 00 00 00  0e 00 00 00  09 00 00 00  53 6f 6d 65    ............Some
 0070: 74 68 69 6e  67 00                                    thing.

 The blob was generated from the following GVariant value:
 ('01234567890123456', @a{sv} {}, ['Something'])

 If the blob was encoded using DBusMessageIter, the payload would have been:

 0000: 6c 01 00 01  32 00 00 00  41 00 00 00  36 00 00 00    l...2...A...6...
 0010: 01 01 6f 00  08 00 00 00  2f 66 6f 6f  2f 62 61 72    ..o...../foo/bar
 0020: 00 00 00 00  00 00 00 00  03 01 73 00  06 00 00 00    ..........s.....
 0030: 4d 65 6d 62  65 72 00 00  08 01 67 00  08 73 61 7b    Member....g..sa{
 0040: 73 76 7d 61  73 00 00 00  11 00 00 00  30 31 32 33    sv}as.......0123
 0050: 34 35 36 37  38 39 30 31  32 33 34 35  36 00 00 00    4567890123456...
 0060: 00 00 00 00  00 00 00 00  0e 00 00 00  09 00 00 00    ................
 0070: 53 6f 6d 65  74 68 69 6e  67 00                       Something.
 ** ERROR:gdbus-serialization.c:547:check_serialization: code should not be reached
 Aborted

and this is now in the libdbus-1-using serialization test case.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUpdated Spanish translation
Jorge González [Fri, 14 May 2010 15:55:37 +0000 (17:55 +0200)]
Updated Spanish translation

14 years agobump version
Matthias Clasen [Fri, 14 May 2010 15:49:15 +0000 (11:49 -0400)]
bump version

14 years ago2.25.4 2.25.4
Matthias Clasen [Fri, 14 May 2010 15:25:11 +0000 (11:25 -0400)]
2.25.4

14 years agofix glaring inaccuracy in GVariant docs
Ryan Lortie [Fri, 14 May 2010 15:06:24 +0000 (17:06 +0200)]
fix glaring inaccuracy in GVariant docs

14 years agoanother !srcdir build fix
Matthias Clasen [Fri, 14 May 2010 14:49:03 +0000 (10:49 -0400)]
another !srcdir build fix

14 years agoMore !srcdir build fixes
Matthias Clasen [Fri, 14 May 2010 14:25:31 +0000 (10:25 -0400)]
More !srcdir build fixes

14 years agoinclude gunixcredentialsmessage from unixsocket
Ryan Lortie [Fri, 14 May 2010 13:30:33 +0000 (15:30 +0200)]
include gunixcredentialsmessage from unixsocket

fixes a build issue

14 years agoCleanups
Matthias Clasen [Fri, 14 May 2010 12:38:07 +0000 (08:38 -0400)]
Cleanups

Sort #includes a bit better, and don't include platform-specific
headers in gio.h.

14 years agoFix !srcdir build
Matthias Clasen [Fri, 14 May 2010 05:36:25 +0000 (01:36 -0400)]
Fix !srcdir build

Thankfully we already had a SRCDIR define.

14 years agoFix a typo
Matthias Clasen [Fri, 14 May 2010 04:59:42 +0000 (00:59 -0400)]
Fix a typo

14 years agoUpdates
Matthias Clasen [Fri, 14 May 2010 04:51:51 +0000 (00:51 -0400)]
Updates

14 years agoDocumentation cleanups
Matthias Clasen [Fri, 14 May 2010 04:21:39 +0000 (00:21 -0400)]
Documentation cleanups

14 years agoMerge branch 'gdbus-merge'
Matthias Clasen [Fri, 14 May 2010 03:08:34 +0000 (23:08 -0400)]
Merge branch 'gdbus-merge'

Conflicts:
docs/reference/gio/gio-docs.xml
docs/reference/gio/gio-sections.txt
gio/tests/Makefile.am

14 years agoRemove a reference to Pango
Matthias Clasen [Tue, 11 May 2010 16:48:22 +0000 (12:48 -0400)]
Remove a reference to Pango

14 years agoThe default timeout is 25s
Matthias Clasen [Fri, 14 May 2010 02:15:47 +0000 (22:15 -0400)]
The default timeout is 25s

14 years agoDocument more floating variant details.
Matthias Clasen [Fri, 14 May 2010 01:53:51 +0000 (21:53 -0400)]
Document more floating variant details.

14 years agoAdd some more details to the long description
Matthias Clasen [Fri, 14 May 2010 01:45:18 +0000 (21:45 -0400)]
Add some more details to the long description

14 years agoClean up platform-specific includes
Matthias Clasen [Fri, 14 May 2010 00:29:04 +0000 (20:29 -0400)]
Clean up platform-specific includes

The problem was pointed out in bug 618029. To solve it, we moved
the GUnixFDList typedef to giotypes.h.

14 years agodocumentation for glib-mkenums @valuenum@
Ryan Lortie [Thu, 13 May 2010 23:54:30 +0000 (01:54 +0200)]
documentation for glib-mkenums @valuenum@

14 years agocheck for working gettext() before running tests
Ryan Lortie [Tue, 11 May 2010 17:48:19 +0000 (19:48 +0200)]
check for working gettext() before running tests

14 years agoAdd configure check for memmem()
Ryan Lortie [Thu, 13 May 2010 22:53:42 +0000 (00:53 +0200)]
Add configure check for memmem()

14 years agoGDBus: update gdbus(1) man page
David Zeuthen [Thu, 13 May 2010 22:19:16 +0000 (18:19 -0400)]
GDBus: update gdbus(1) man page

14 years agoGDBus: Nuke G_BUS_TYPE_NONE
David Zeuthen [Thu, 13 May 2010 22:04:48 +0000 (18:04 -0400)]
GDBus: Nuke G_BUS_TYPE_NONE

14 years agoGDBus: Remove g_dbus_is_activated()
David Zeuthen [Thu, 13 May 2010 21:44:42 +0000 (17:44 -0400)]
GDBus: Remove g_dbus_is_activated()

It's generally hard to get this right so don't attempt to do so.

14 years agoGDBus: subscribe to PropertiesChanged() before calling GetAll()
David Zeuthen [Thu, 13 May 2010 21:20:39 +0000 (17:20 -0400)]
GDBus: subscribe to PropertiesChanged() before calling GetAll()

Otherwise there's a slight chance of a race.

14 years agoGDBus: Don't take a GError for g_dbus_proxy_get_cached_property_names()
David Zeuthen [Thu, 13 May 2010 21:10:15 +0000 (17:10 -0400)]
GDBus: Don't take a GError for g_dbus_proxy_get_cached_property_names()

We stopped doing this for get_cached_property() so no reason to do it
here.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Update docs for GDBusProxy::g-properties-changed signal
David Zeuthen [Thu, 13 May 2010 20:57:29 +0000 (16:57 -0400)]
GDBus: Update docs for GDBusProxy::g-properties-changed signal

Also update the example. See

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

for more details.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoMake GVariant handling in PropertiesChanged more efficient
Christian Persch [Thu, 13 May 2010 17:01:04 +0000 (19:01 +0200)]
Make GVariant handling in PropertiesChanged more efficient

There's no need to re-build the a{sv} array, just get it right out of
the parameters. Also avoid some string copies.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoPlug some mem leaks
Christian Persch [Thu, 13 May 2010 17:20:26 +0000 (19:20 +0200)]
Plug some mem leaks

g_variant_get (v, "s", &str) returns a string copy; use "&s" instead.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Add GDBusAuthObserver param in g_dbus_connection_new_for_address()
David Zeuthen [Thu, 13 May 2010 20:32:11 +0000 (16:32 -0400)]
GDBus: Add GDBusAuthObserver param in g_dbus_connection_new_for_address()

This is to match g_dbus_connection_new(). This extension allows us to
extend GDBusAuthObserver to also be used in client-side authentication
in the future (right now it's only used on the server-side).

14 years agoGDBus: Rename ::deny-authentication-peer to ::authorize-authenticated-peer
David Zeuthen [Thu, 13 May 2010 20:20:31 +0000 (16:20 -0400)]
GDBus: Rename ::deny-authentication-peer to ::authorize-authenticated-peer

14 years agoRemove the credentials argument from g_unix_connect_send_credentials()
Matthias Clasen [Thu, 13 May 2010 18:25:29 +0000 (14:25 -0400)]
Remove the credentials argument from g_unix_connect_send_credentials()

Instead, make it always send the current credentials.

14 years agoGDBus: Make message serialization routines take capabilities param
David Zeuthen [Thu, 13 May 2010 18:01:41 +0000 (14:01 -0400)]
GDBus: Make message serialization routines take capabilities param

This is needed to e.g. allow encoding maybe types (once we add
G_DBUS_CAPABILITY_FLAGS_MAYBE_TYPES) if, and only if, that capability
has been negotiated with the peer (via authentication).

14 years agoremove the redundant interface_name parameter
Matthias Clasen [Thu, 13 May 2010 17:09:58 +0000 (13:09 -0400)]
remove the redundant interface_name parameter

14 years agoGDBus: Catch up with new PropertiesChanged signal
David Zeuthen [Thu, 13 May 2010 15:56:15 +0000 (11:56 -0400)]
GDBus: Catch up with new PropertiesChanged signal

After a long discussion, this has finally been standardized in the
D-Bus spec. See

 http://lists.freedesktop.org/archives/dbus/2010-May/012667.html
 http://lists.freedesktop.org/archives/dbus/2010-May/012712.html

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoFill out the export section of the migration guide
Matthias Clasen [Thu, 13 May 2010 05:04:29 +0000 (01:04 -0400)]
Fill out the export section of the migration guide

14 years agoUpdate Shavian transliteration
Thomas Thurman [Thu, 13 May 2010 04:51:30 +0000 (00:51 -0400)]
Update Shavian transliteration

14 years agoAdd an example of exporting a GObject
Matthias Clasen [Thu, 13 May 2010 04:39:26 +0000 (00:39 -0400)]
Add an example of exporting a GObject

This is more manual work than dbus-glib.

14 years agoGDBus: add 'monitor' verb to gdbus(1)
David Zeuthen [Thu, 13 May 2010 03:12:14 +0000 (23:12 -0400)]
GDBus: add 'monitor' verb to gdbus(1)

This uncovered a bug in name watching if the name wasn't activatable.

Also provoked the need for on_connection variants of g_bus_watch_name
(added g_bus_watch_proxy's variant as well).

14 years agoGDBus: Make gdbus(1) print annotations when introspecting data
David Zeuthen [Thu, 13 May 2010 02:09:18 +0000 (22:09 -0400)]
GDBus: Make gdbus(1) print annotations when introspecting data

Also make the gdbus-example-server include some example
annotations. The output looks like this:

$ gdbus introspect --session --dest org.gtk.GDBus.TestServer --object-path /org/gtk/GDBus/TestObject
node /org/gtk/GDBus/TestObject {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties);
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
  };
  @org.gtk.GDBus.Annotation("OnInterface")
  @org.gtk.GDBus.Annotation("AlsoOnInterface")
  interface org.gtk.GDBus.TestInterface {
    methods:
      @org.gtk.GDBus.Annotation("OnMethod")
      HelloWorld(in  s greeting,
                 out s response);
      EmitSignal(@org.gtk.GDBus.Annotation.("OnArg")
                 in  d speed_in_mph);
      GimmeStdout();
    signals:
      @org.gtk.GDBus.Annotation("Onsignal")
      VelocityChanged(d speed_in_mph,
                      @org.gtk.GDBus.Annotation.("OnArg_NonFirst")
                      s speed_as_string);
    properties:
      @org.gtk.GDBus.Annotation("OnProperty")
        @org.gtk.GDBus.Annotation("OnAnnotation_YesThisIsCrazy")
      readonly s FluxCapicitorName = 'DeLorean';
      readwrite s Title = 'Back To C!';
      readonly s ReadingAlwaysThrowsError;
      readwrite s WritingAlwaysThrowsError = "There's no home like home";
      writeonly s OnlyWritable;
      readonly s Foo = 'Tick';
      readonly s Bar = 'Tock';
  };
};

14 years agoAdd a note about implemented standard interfaces
Matthias Clasen [Thu, 13 May 2010 01:51:06 +0000 (21:51 -0400)]
Add a note about implemented standard interfaces

14 years agoGDBusProxy: Remove error in get_cached_property() and add set_cached_property()
David Zeuthen [Thu, 13 May 2010 00:43:40 +0000 (20:43 -0400)]
GDBusProxy: Remove error in get_cached_property() and add set_cached_property()

This makes it possible to use the cached properties mechanism even if
constructing the proxy with the DO_NOT_LOAD_PROPERTIES flag.

This is useful for cases where you obtain the and track object
properties out-of-band. For example, in udisks, the plan is to have
something like this

 Manager.GetObjects    (out ao paths, out aa{sa{sv}} all_properties);
 Manager.ObjectAdded   (o path, a{sa{sv}} all_properties);
 Manager.ObjectChanged (o path, a{sa{sv}} all_properties);
 Manager.ObjectRemoved (o path, a{sa{sv}} all_properties);

E.g. the first GetObjects() call will return *all* data about *all*
exported objects. Further, this way a client will only need to listen
these three signals (three AddMatch) on the Manager object and it will
never need to do GetAll() etc (e.g. can use DO_NOT_LOAD_PROPERTIES).

(Of course this only works if the client is interested in all
objects... while this is true for udisks it is generally not true for
other D-Bus services).

Also use expected_interface to check for programming errors.

14 years agoUpdated Shavian transliteration
Thomas Thurman [Wed, 12 May 2010 22:41:27 +0000 (18:41 -0400)]
Updated Shavian transliteration

14 years agoAdd some more verbiage
Matthias Clasen [Wed, 12 May 2010 21:56:56 +0000 (17:56 -0400)]
Add some more verbiage

14 years agoGDBus: Add an example of a GDBusProxy subclass
David Zeuthen [Wed, 12 May 2010 19:49:48 +0000 (15:49 -0400)]
GDBus: Add an example of a GDBusProxy subclass

14 years agoUpdate an example to the latest auth observer api
Matthias Clasen [Wed, 12 May 2010 17:01:40 +0000 (13:01 -0400)]
Update an example to the latest auth observer api

14 years agoCorrect env var names
Matthias Clasen [Wed, 12 May 2010 17:01:02 +0000 (13:01 -0400)]
Correct env var names

and add a note about priority

14 years agoplaceholder for more migration docs
Matthias Clasen [Wed, 12 May 2010 16:13:57 +0000 (12:13 -0400)]
placeholder for more migration docs

14 years agoAdded test cases for g_output_stream_close_async
Jesse van den Kieboom [Fri, 7 May 2010 09:55:40 +0000 (11:55 +0200)]
Added test cases for g_output_stream_close_async

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

14 years agoFlush when closing output stream async
Jesse van den Kieboom [Mon, 10 May 2010 21:49:41 +0000 (23:49 +0200)]
Flush when closing output stream async

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

14 years agoUpdate TODO list
Matthias Clasen [Wed, 12 May 2010 03:26:51 +0000 (23:26 -0400)]
Update TODO list

14 years agomention inline use of floating variants
Matthias Clasen [Wed, 12 May 2010 03:18:48 +0000 (23:18 -0400)]
mention inline use of floating variants

14 years agoRemove properties from GDBusMethodInvocation class
Matthias Clasen [Wed, 12 May 2010 02:51:14 +0000 (22:51 -0400)]
Remove properties from GDBusMethodInvocation class

14 years agoDocument remove_filter
Matthias Clasen [Wed, 12 May 2010 02:50:40 +0000 (22:50 -0400)]
Document remove_filter

14 years agoDocument DBUS address env vars
Matthias Clasen [Wed, 12 May 2010 02:35:59 +0000 (22:35 -0400)]
Document DBUS address env vars

14 years agoTrivial: tweak section heading
Matthias Clasen [Wed, 12 May 2010 02:03:40 +0000 (22:03 -0400)]
Trivial: tweak section heading

14 years agoTrivial formatting fix
Matthias Clasen [Wed, 12 May 2010 02:00:54 +0000 (22:00 -0400)]
Trivial formatting fix

14 years agoFill out the proxy section of the migration guide
Matthias Clasen [Wed, 12 May 2010 02:00:06 +0000 (22:00 -0400)]
Fill out the proxy section of the migration guide

14 years agoDon't refer to nonexisting API.
Matthias Clasen [Wed, 12 May 2010 01:59:42 +0000 (21:59 -0400)]
Don't refer to nonexisting API.

14 years agoFix a typo
Matthias Clasen [Wed, 12 May 2010 01:32:29 +0000 (21:32 -0400)]
Fix a typo

14 years agoComplete the name owning section of the migration guide
Matthias Clasen [Wed, 12 May 2010 01:30:53 +0000 (21:30 -0400)]
Complete the name owning section of the migration guide

14 years agoMatch up parameter names
Matthias Clasen [Wed, 12 May 2010 00:57:44 +0000 (20:57 -0400)]
Match up parameter names

and similar cleanups to make gtk-doc happy.

14 years agoLine up prototypes
Matthias Clasen [Wed, 12 May 2010 00:03:44 +0000 (20:03 -0400)]
Line up prototypes

14 years agoMore gdbus migration stuff
Matthias Clasen [Tue, 11 May 2010 21:15:11 +0000 (17:15 -0400)]
More gdbus migration stuff

14 years agoStrip copyright headers from examples
Matthias Clasen [Tue, 11 May 2010 19:50:19 +0000 (15:50 -0400)]
Strip copyright headers from examples

These are included wholesale in the docs, and the copyright
headers make them even more overwhelming. Plus, we don't have
copyright headers on examples anywhere else.

14 years agoTrivial: rename a file
Matthias Clasen [Tue, 11 May 2010 19:42:15 +0000 (15:42 -0400)]
Trivial: rename a file

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Tue, 11 May 2010 17:54:06 +0000 (19:54 +0200)]
Updated Norwegian bokmål translation

14 years agoGDBus: Update TODO list
David Zeuthen [Tue, 11 May 2010 16:04:37 +0000 (12:04 -0400)]
GDBus: Update TODO list

14 years agogio: Fix gsettings build with binutils gold linker
Sebastian Dröge [Mon, 10 May 2010 07:48:49 +0000 (09:48 +0200)]
gio: Fix gsettings build with binutils gold linker

14 years agoDon't include __bss_start, _edata and _end symbols in the abichecks
Sebastian Dröge [Mon, 10 May 2010 07:51:49 +0000 (09:51 +0200)]
Don't include __bss_start, _edata and _end symbols in the abichecks

They are added by the binutils gold linker.

14 years agoGDBus: In gdbus(1), try Get() if GetAll() fails
David Zeuthen [Mon, 10 May 2010 20:20:59 +0000 (16:20 -0400)]
GDBus: In gdbus(1), try Get() if GetAll() fails

This fixes a problem with services that doesn't implement GetAll() for
one reason or another.

$ gdbus introspect --session --dest org.freedesktop.ReserveDevice1.Audio0 --object-path /org/freedesktop/ReserveDevice1/Audio0
node /org/freedesktop/ReserveDevice1/Audio0 {
  interface org.freedesktop.ReserveDevice1 {
    methods:
      RequestRelease(in  i priority,
                     out b result);
    properties:
      readonly i Priority = 0;
      readonly s ApplicationName = 'PulseAudio Sound Server';
      readonly s ApplicationDeviceName = 'Internal Audio Analog Stereo';
  };
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface,
          in  s property,
          out v value);
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s data);
  };
};

14 years agoGDBus: Add TODO item about a need to validate data / messages
David Zeuthen [Mon, 10 May 2010 18:43:08 +0000 (14:43 -0400)]
GDBus: Add TODO item about a need to validate data / messages

14 years agoGDBus Add TODO items about finding and launching bus instances
David Zeuthen [Mon, 10 May 2010 18:07:13 +0000 (14:07 -0400)]
GDBus Add TODO items about finding and launching bus instances

14 years agoUpdated Spanish translation
Jorge González [Mon, 10 May 2010 17:38:57 +0000 (19:38 +0200)]
Updated Spanish translation

14 years agoGDBus: Use GVariant instead of GHashTable for GDBusProxy::g-properties-changed
David Zeuthen [Mon, 10 May 2010 17:31:54 +0000 (13:31 -0400)]
GDBus: Use GVariant instead of GHashTable for GDBusProxy::g-properties-changed

14 years agoGDBus: Use call() instead of invoke_method()
David Zeuthen [Mon, 10 May 2010 15:47:08 +0000 (11:47 -0400)]
GDBus: Use call() instead of invoke_method()

Lots of people been suggesting this. We still use MethodInvocation /
method_invocation for handling incoming method calls so use call()
instead of invoke_method() helps to separate the client and server
facilities. Which is a good thing(tm).

14 years agoMore copyright year updates
Matthias Clasen [Mon, 10 May 2010 12:07:28 +0000 (08:07 -0400)]
More copyright year updates

14 years agoTrivia
Matthias Clasen [Mon, 10 May 2010 12:07:07 +0000 (08:07 -0400)]
Trivia

14 years agoCosmetic fixes
Matthias Clasen [Mon, 10 May 2010 02:13:18 +0000 (22:13 -0400)]
Cosmetic fixes

Use P_() for properties, fix up indentation, etc.

14 years agoUpdate copyright years to include 2010
Matthias Clasen [Sun, 9 May 2010 17:14:55 +0000 (13:14 -0400)]
Update copyright years to include 2010

14 years agoMicrooptimize string reallocations
Matthias Clasen [Sun, 9 May 2010 17:09:54 +0000 (13:09 -0400)]
Microoptimize string reallocations

14 years agoMove some platform sources around
Matthias Clasen [Sun, 9 May 2010 16:41:02 +0000 (12:41 -0400)]
Move some platform sources around

gunixcredentialsmessage.h ought to live with other UNIX headers,
and the credentials are moved from dbus-specific to just GIO sources.
Also move gfiledescriptorbased.c to the UNIX sources.

14 years agoMention multithreading as a reason for not using libdbus
Matthias Clasen [Sun, 9 May 2010 16:24:56 +0000 (12:24 -0400)]
Mention multithreading as a reason for not using libdbus

14 years agogtester-report: cope with binaries with no test cases
Robert Bragg [Thu, 6 May 2010 14:46:00 +0000 (15:46 +0100)]
gtester-report: cope with binaries with no test cases

It's possible that a given binary may conditionally decided not to run
any test cases (e.g. since they are all slow but -m=quick is currently
in use) In this case the xml may contain <testbinary> nodes with no
<testcase> children. This was resulting in a divide by zero when
calculating the green → red color interpolation.

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

14 years agoGDBus: Rework GCredentials type
David Zeuthen [Sun, 9 May 2010 14:02:56 +0000 (10:02 -0400)]
GDBus: Rework GCredentials type

These changes are is related to

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

and IRC discussions with danw.

14 years agoAdd some conceptual changes
Matthias Clasen [Sun, 9 May 2010 06:27:09 +0000 (02:27 -0400)]
Add some conceptual changes

14 years agoSome documentation tweaks
Matthias Clasen [Sun, 9 May 2010 05:44:11 +0000 (01:44 -0400)]
Some documentation tweaks

Add links to the D-Bus docs in some places, and various
other additions.

14 years agoDoc improvements
Matthias Clasen [Sun, 9 May 2010 03:28:17 +0000 (23:28 -0400)]
Doc improvements

Make sure all unix-specific apis are marked as such.

14 years agoSupport 64bit integers in GKeyFile
Simon McVittie [Sun, 9 May 2010 01:30:27 +0000 (21:30 -0400)]
Support 64bit integers in GKeyFile

14 years agoMake GSETTINGS_CHECK_RULE work in !srcdir builds
Matthias Clasen [Sun, 9 May 2010 01:18:48 +0000 (21:18 -0400)]
Make GSETTINGS_CHECK_RULE work in !srcdir builds

This problem was reported in bug 617823.

14 years agoAdd test for g_get_language_names
Matthias Clasen [Sun, 9 May 2010 00:58:10 +0000 (20:58 -0400)]
Add test for g_get_language_names

14 years agoDocument length parameter of g_settings_get/set_strv
Matthias Clasen [Sun, 9 May 2010 00:10:57 +0000 (20:10 -0400)]
Document length parameter of g_settings_get/set_strv

This parameter was not mentioned in the doc comment, as pointed
out in bug 617767.

14 years agoDocument length parameter of g_settings_get/set_strv
Matthias Clasen [Sun, 9 May 2010 00:10:57 +0000 (20:10 -0400)]
Document length parameter of g_settings_get/set_strv

This parameter was not mentioned in the doc comment, as pointed
out in bug 617767.

14 years agoremove broken useless initialization in socket-client/socket-server
Dan Winship [Fri, 7 May 2010 23:08:13 +0000 (19:08 -0400)]
remove broken useless initialization in socket-client/socket-server

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

14 years agoGDBus: add TODO item about maybe having to rework ::g-properties-changed
David Zeuthen [Fri, 7 May 2010 19:02:37 +0000 (15:02 -0400)]
GDBus: add TODO item about maybe having to rework ::g-properties-changed