GNOME Bugzilla – Bug 633819
update libnotify bindings for 0.7.0
Last modified: 2010-11-08 10:54:14 UTC
libnotify 0.7.0 changes api: notify_notification_new_with_status_icon is gone notify_notification_attach_to_status_icon is gone notify_notification_attach_to_widget is gone notify_notification_set_geometry_hints is gone notify_notification_new has lost its widget argument
Did libnotify change its pkg-config name?
No, and it is not parallel-installable or anything like that.
Jürg, what do you think about defining PACKAGE_MAJOR_MINOR for 0..MINOR based on the pkg-config version, kind of like what valac already does for glib (although I don't think it starts from 0)? Then we could do something like #if LIBNOTIFY_0_7 public Notification (); #else public Notification (Gtk.Widget widget); #endif I haven't looked at the API, but that should be enough to convey the idea...
I don't think we should define this based on pkg-config version retrieved at compile-time as this might lead to confusing or surprising results on different systems. For GLib we don't use the version from pkg-config, we use the version specified on the valac command line to not accidentally depend on newer GLib versions. In my opinion, we should default to libnotify 0.7 API in vala master as Vala is roughly following the GNOME release schedule. The old API can be supported using a define (e.g., LIBNOTIFY_0_5) that needs to be given on the valac command line.
commit 4d35d0d5253f482ea845508e6cfb262596a7305e Author: Evan Nemerson <evan@coeus-group.com> Date: Mon Nov 8 02:43:46 2010 -0800 libnotify: Update to 0.7.0 Fixes bug 633819.