Files
sablink-distro/x11-plugins/pidgin-libnotify/files/fix-notify-osd.diff
T
Ian Whyman 5e80f3bc03 [x11-plugins/pidgin-libnotify] Fix Notify OSD support and Name choice, add file transfers notifications and an option to hide message content.
A collection of patches submitted to the (dead?) upstream, this ebuild can be
removed once the packages are merged upstream (if ever)

* fix-notify-osd.diff
Source: Debian Package
Needed to work with Notify OSD correctly.

* no_text_in_messages.diff
Source: Thev00d00 - Version of patch found on SF, Adds an option to not show
the message content in the notification to improve privacy if needed, fixed
to work with 0.14

* notify_file_transfers.diff
Source: Sourceforge patches page
Enables file transfer notifications

* pidgin-libnotify_best_name.diff
Source: Thev00d00,
A version of the same patch on SF to use what libpurple thinks is the most
appropriate name rather than its own logic, fixed to work with 0.14
2010-12-29 22:21:11 +00:00

17 lines
801 B
Diff

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