~ubuntu-branches/ubuntu/raring/pidgin-libnotify/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/fix-notify-osd.diff

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2010-01-24 13:25:57 UTC
  • Revision ID: james.westby@ubuntu.com-20100124132557-6c2x86bqsqg1w0ay
Tags: 0.14-4
* Swicth to source format 3.0
* Bum Standards-Version to 3.8.3
* Add patch fix-notify-osd.diff to disable show button for working
  with notify-osd, thanks to Lubomír Sedlár <lubomir.sedlar@gmail.com>
* Add it_po.diff to update Italian translation, thanks to Milo
  Casagrande <milo@ubuntu.com> (Closes: #555789)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -urN pidgin-libnotify-0.14.orig/src/pidgin-libnotify.c pidgin-libnotify-0.14/src/pidgin-libnotify.c
 
2
--- pidgin-libnotify-0.14.orig/src/pidgin-libnotify.c   2010-01-24 13:22:41.000000000 -0500
 
3
+++ pidgin-libnotify-0.14/src/pidgin-libnotify.c        2010-01-24 13:22:51.000000000 -0500
 
4
@@ -317,7 +317,11 @@
 
5
 
 
6
        notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
 
7
 
 
8
-       notify_notification_add_action (notification, "show", _("Show"), action_cb, NULL, NULL);
 
9
+  GList *caps;
 
10
+  caps = notify_get_server_caps();
 
11
+  if (g_list_index(caps, "action") != -1) {
 
12
+    notify_notification_add_action (notification, "show", _("Show"), action_cb, NULL, NULL);
 
13
+  }
 
14
 
 
15
        if (!notify_notification_show (notification, NULL)) {
 
16
                purple_debug_error (PLUGIN_ID, "notify(), failed to send notification\n");