tags 630294 + pending
thanks

Dear maintainer,

I've prepared an NMU for padevchooser (versioned as 0.9.3-2.2) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -u padevchooser-0.9.3/debian/changelog padevchooser-0.9.3/debian/changelog
--- padevchooser-0.9.3/debian/changelog
+++ padevchooser-0.9.3/debian/changelog
@@ -1,3 +1,10 @@
+padevchooser (0.9.3-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add compatibility with libnotify 0.7 API. (Closes: #630294)
+
+ -- Jérémy Bobbio <lu...@debian.org>  Wed, 03 Aug 2011 13:57:11 +0200
+
 padevchooser (0.9.3-2.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u padevchooser-0.9.3/debian/patches/series padevchooser-0.9.3/debian/patches/series
--- padevchooser-0.9.3/debian/patches/series
+++ padevchooser-0.9.3/debian/patches/series
@@ -3,0 +4 @@
+0005-fix-libnotify0.7-compatibility.patch
only in patch2:
unchanged:
--- padevchooser-0.9.3.orig/debian/patches/0005-fix-libnotify0.7-compatibility.patch
+++ padevchooser-0.9.3/debian/patches/0005-fix-libnotify0.7-compatibility.patch
@@ -0,0 +1,29 @@
+Description: Add compatibility with libnotify 0.7 API
+Author: Jérémy Bobbio <lu...@debian.org>
+Bug-Debian: http://bugs.debian.org/630294
+
+--- padevchooser-0.9.3.orig/src/padevchooser.c
++++ padevchooser-0.9.3/src/padevchooser.c
+@@ -33,6 +33,9 @@
+ #include <glade/glade.h>
+ #include <gconf/gconf-client.h>
+ #include <libnotify/notify.h>
++#ifndef NOTIFY_CHECK_VERSION
++#define NOTIFY_CHECK_VERSION(x,y,z) 0
++#endif
+ 
+ #include <pulse/pulseaudio.h>
+ #include <pulse/browser.h>
+@@ -162,7 +165,12 @@
+         
+     if (!notification) {
+         s = g_strdup_printf("<i>%s</i>\n%s", title, text);
++/* libnotify 0.7.0 and later has no support for attaching to widgets */
++#if NOTIFY_CHECK_VERSION(0,7,0)
++        notification = notify_notification_new(title, s, "audio-card");
++#else
+         notification = notify_notification_new(title, s, "audio-card", GTK_WIDGET(tray_icon));
++#endif
+         notify_notification_set_category(notification, "device.added");
+         notify_notification_set_urgency(notification, NOTIFY_URGENCY_LOW);
+         g_signal_connect_swapped(G_OBJECT(notification), "closed", G_CALLBACK(notification_closed), NULL);

Attachment: signature.asc
Description: Digital signature

Reply via email to