6d01c2069a
tested in a bulk by landry, thanks! ok landry@ jasper@
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_plugin_c,v 1.1 2011/04/21 07:04:56 ajacoutot Exp $
|
|
|
|
Fix with libnotify>=0.7
|
|
(notify_notification_new has lost its widget argument)
|
|
(notify_notification_attach_to_status_icon is gone)
|
|
|
|
--- src/plugin.c.orig Tue Apr 19 14:11:02 2011
|
|
+++ src/plugin.c Tue Apr 19 14:11:35 2011
|
|
@@ -149,15 +149,15 @@ static void libnotify_song_changed(MpdObj *mi)
|
|
if(not == NULL)
|
|
{
|
|
// notify_notification_close(not, NULL);
|
|
- not = notify_notification_new(summary, buffer,NULL, NULL);
|
|
+ not = notify_notification_new(summary, buffer, NULL);
|
|
}
|
|
else{
|
|
notify_notification_update(not, summary, buffer, NULL);
|
|
}
|
|
notify_notification_set_urgency(not, NOTIFY_URGENCY_LOW);
|
|
|
|
- if(cfg_get_single_value_as_int_with_default(config, "libnotify-plugin", "attach-to-tray", TRUE))
|
|
- notify_notification_attach_to_status_icon(not, tray_icon2_gsi);
|
|
+// if(cfg_get_single_value_as_int_with_default(config, "libnotify-plugin", "attach-to-tray", TRUE))
|
|
+// notify_notification_attach_to_status_icon(not, tray_icon2_gsi);
|
|
|
|
g_free(summary);
|
|
/* Add the song to the widget */
|