After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622891 - Migrate from dbus-glib to glib's GDBus
Migrate from dbus-glib to glib's GDBus
Status: RESOLVED FIXED
Product: libnotify
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: William Jon McCann
Depends on:
Blocks: 622871
 
 
Reported: 2010-06-27 10:54 UTC by André Klapper
Modified: 2010-10-15 03:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Port to gdbus (49.33 KB, patch)
2010-10-11 23:39 UTC, Christian Persch
committed Details | Review

Description André Klapper 2010-06-27 10:54:33 UTC
For GLib 2.25.5 GDBus D-Bus support was merged, providing an API to replace dbus-glib.

See http://library.gnome.org/devel/gio/unstable/gdbus.html and http://library.gnome.org/devel/gio/unstable/ch28.html .

According to a quick grep this module seems to use dbus-glib:

configure.ac:pkg_modules="gtk+-2.0 >= $REQ_GTK_VERSION, glib-2.0 >= $REQ_GLIB_VERSION, dbus-1 >= $REQ_DBUS_VERSION, dbus-glib-1 >= $REQ_DBUS_VERSION"
Comment 1 Christian Persch 2010-10-11 23:39:06 UTC
Created attachment 172146 [details] [review]
Port to gdbus

Bug #622891.
Comment 2 Matthias Clasen 2010-10-12 01:07:28 UTC
Review of attachment 172146 [details] [review]:

Looks good to me. I wonder if it is really worth changing the api and exposing GVariant in the libnotify api, but not a big deal.
Comment 3 William Jon McCann 2010-10-12 02:52:00 UTC
Comment on attachment 172146 [details] [review]
Port to gdbus

Seems to lose support for older servers with the icon vs image thing but that's fine I think.  And I think adding the variant in the api is fine.

Looks good.  Thanks!
Comment 4 Christian Persch 2010-10-12 14:01:37 UTC
Pushed to master.

(In reply to comment #2)
> I wonder if it is really worth changing the api and exposing
> GVariant in the libnotify api, but not a big deal.

This function could be hidden behind a #if GLIB_CHECK_VERSION (2, 24, 0) if you want.

(In reply to comment #3)
> (From update of attachment 172146 [details] [review])
> Seems to lose support for older servers with the icon vs image thing but that's
> fine I think.

It wasn't deliberate at least; afaict it's still using the different hint names according to the server version.
Comment 5 William Jon McCann 2010-10-15 03:42:48 UTC
Naw, no need.  We've broken API and ABI anyway.  Thanks again!