Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 207486 Details for
Bug 280775
[New ebuild] x11-misc/notify-osd-0.9.16
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make pidgin work with notify-osd
pidgin-notify-osd.patch (text/plain), 3.09 KB, created by
Tommaso Pasini
on 2009-10-18 14:57:49 UTC
(
hide
)
Description:
patch to make pidgin work with notify-osd
Filename:
MIME Type:
Creator:
Tommaso Pasini
Created:
2009-10-18 14:57:49 UTC
Size:
3.09 KB
patch
obsolete
>*** src/pidgin-libnotify.c 2008-12-14 10:45:51.000000000 -0700 >--- src/pidgin-libnotify.c 2009-02-24 13:01:47.000000000 -0700 >*************** >*** 254,259 **** >--- 254,285 ---- > return purple_status_is_online (status) && purple_status_is_available (status); > } > >+ static gboolean >+ notify_supports_actions () >+ { >+ GList *caps; >+ gint i = 0; >+ >+ caps = notify_get_server_caps (); >+ >+ do >+ { >+ if (g_strcmp0 (caps->data, "actions") == 0) >+ { >+ g_list_free (caps); >+ return TRUE; >+ } >+ >+ if (caps->next != NULL) >+ caps = g_list_next (caps); >+ >+ } while (caps->next != NULL); >+ >+ g_list_free (caps); >+ >+ return FALSE; >+ } >+ > static void > notify (const gchar *title, > const gchar *body, >*************** >*** 316,323 **** > g_signal_connect (notification, "closed", G_CALLBACK(closed_cb), NULL); > > notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL); >! >! 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"); >--- 342,353 ---- > g_signal_connect (notification, "closed", G_CALLBACK(closed_cb), NULL); > > notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL); >! >! /* Check if notification server can use actions */ >! if (notify_supports_actions ()) >! { >! 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"); >*************** >*** 329,335 **** > notify_buddy_signon_cb (PurpleBuddy *buddy, > gpointer data) > { >! gchar *tr_name, *title; > gboolean blocked; > > g_return_if_fail (buddy); >--- 359,365 ---- > notify_buddy_signon_cb (PurpleBuddy *buddy, > gpointer data) > { >! gchar *tr_name; > gboolean blocked; > > g_return_if_fail (buddy); >*************** >*** 349,367 **** > > tr_name = truncate_escape_string (best_name (buddy), 25); > >! title = g_strdup_printf (_("%s signed on"), tr_name); >! >! notify (title, NULL, buddy); > > g_free (tr_name); >- g_free (title); > } > > static void > notify_buddy_signoff_cb (PurpleBuddy *buddy, > gpointer data) > { >! gchar *tr_name, *title; > gboolean blocked; > > g_return_if_fail (buddy); >--- 379,394 ---- > > tr_name = truncate_escape_string (best_name (buddy), 25); > >! notify (tr_name, "Signed on", buddy); > > g_free (tr_name); > } > > static void > notify_buddy_signoff_cb (PurpleBuddy *buddy, > gpointer data) > { >! gchar *tr_name; > gboolean blocked; > > g_return_if_fail (buddy); >*************** >*** 381,392 **** > > tr_name = truncate_escape_string (best_name (buddy), 25); > >! title = g_strdup_printf (_("%s signed off"), tr_name); >! >! notify (title, NULL, buddy); > > g_free (tr_name); >- g_free (title); > } > > static void >--- 408,416 ---- > > tr_name = truncate_escape_string (best_name (buddy), 25); > >! notify (tr_name, "Signed off", buddy); > > g_free (tr_name); > } > > static void > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280775
:
200595
|
200596
| 207486 |
207488
|
227445