diff options
author | marcus <marcus@FreeBSD.org> | 2012-02-06 12:23:10 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2012-02-06 12:23:10 +0800 |
commit | 8da2153b5e40c31d0c91123a5acf68d6590f4516 (patch) | |
tree | cf2d0f1487f284093dad46791255cae1c149ca61 | |
parent | ccf6689464774c8a4b2039abff3c73d6db8b1b92 (diff) | |
download | freebsd-ports-graphics-8da2153b5e40c31d0c91123a5acf68d6590f4516.tar.gz freebsd-ports-graphics-8da2153b5e40c31d0c91123a5acf68d6590f4516.tar.zst freebsd-ports-graphics-8da2153b5e40c31d0c91123a5acf68d6590f4516.zip |
Fix the status icon plugin with the latest libnotify changes.
Submitted by: sbruno
PR: 164300
Obtained from: GNOME git
4 files changed, 55 insertions, 3 deletions
diff --git a/audio/rhythmbox/Makefile b/audio/rhythmbox/Makefile index e9912b3ee58..30a75205d8f 100644 --- a/audio/rhythmbox/Makefile +++ b/audio/rhythmbox/Makefile @@ -8,7 +8,7 @@ PORTNAME= rhythmbox PORTVERSION= 0.12.8 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= audio gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/audio/rhythmbox/files/patch-plugins_status-icon_rb-status-icon-plugin.c b/audio/rhythmbox/files/patch-plugins_status-icon_rb-status-icon-plugin.c index 923a00e9461..831777c0f78 100644 --- a/audio/rhythmbox/files/patch-plugins_status-icon_rb-status-icon-plugin.c +++ b/audio/rhythmbox/files/patch-plugins_status-icon_rb-status-icon-plugin.c @@ -1,5 +1,5 @@ ---- plugins/status-icon/rb-status-icon-plugin.c.orig 2011-08-21 21:46:27.000000000 +0200 -+++ plugins/status-icon/rb-status-icon-plugin.c 2011-08-21 21:46:43.000000000 +0200 +--- plugins/status-icon/rb-status-icon-plugin.c.orig 2010-03-24 20:10:13.000000000 -0400 ++++ plugins/status-icon/rb-status-icon-plugin.c 2012-02-05 23:19:58.000000000 -0500 @@ -394,7 +394,7 @@ do_notify (RBStatusIconPlugin *plugin, icon_name = NULL; @@ -9,3 +9,25 @@ g_signal_connect_object (plugin->priv->notification, "closed", +@@ -405,21 +405,6 @@ do_notify (RBStatusIconPlugin *plugin, + notify_notification_update (plugin->priv->notification, primary, secondary, icon_name); + } + +- switch (plugin->priv->icon_mode) { +- case ICON_NEVER: +- break; +- +- case ICON_WITH_NOTIFY: +- case ICON_ALWAYS: +- case ICON_OWNS_WINDOW: +- rb_tray_icon_attach_notification (plugin->priv->tray_icon, +- plugin->priv->notification); +- break; +- +- default: +- g_assert_not_reached (); +- } +- + notify_notification_set_timeout (plugin->priv->notification, timeout); + + if (pixbuf != NULL) { diff --git a/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.c b/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.c new file mode 100644 index 00000000000..2ed986982a8 --- /dev/null +++ b/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.c @@ -0,0 +1,17 @@ +--- plugins/status-icon/rb-tray-icon-gtk.c.orig 2012-02-05 23:21:11.000000000 -0500 ++++ plugins/status-icon/rb-tray-icon-gtk.c 2012-02-05 23:21:24.000000000 -0500 +@@ -339,14 +339,6 @@ rb_tray_icon_is_embedded (RBTrayIcon *tr + return gtk_status_icon_is_embedded (tray->priv->icon); + } + +-#if defined(HAVE_NOTIFY) +-void +-rb_tray_icon_attach_notification (RBTrayIcon *tray, NotifyNotification *notification) +-{ +- notify_notification_attach_to_status_icon (notification, tray->priv->icon); +-} +-#endif +- + void + rb_tray_icon_set_visible (RBTrayIcon *tray, gboolean visible) + { diff --git a/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.h b/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.h new file mode 100644 index 00000000000..e71f2dd9024 --- /dev/null +++ b/audio/rhythmbox/files/patch-plugins_status-icon_rb-tray-icon-gtk.h @@ -0,0 +1,13 @@ +--- plugins/status-icon/rb-tray-icon-gtk.h.orig 2012-02-05 23:22:03.000000000 -0500 ++++ plugins/status-icon/rb-tray-icon-gtk.h 2012-02-05 23:22:11.000000000 -0500 +@@ -74,10 +74,6 @@ gboolean rb_tray_icon_is_embedded (RBTr + + void rb_tray_icon_menu_popup (RBTrayIcon *icon, GtkWidget *popup, gint button); + +-#if defined(HAVE_NOTIFY) +-void rb_tray_icon_attach_notification (RBTrayIcon *icon, NotifyNotification *notification); +-#endif +- + void rb_tray_icon_set_visible (RBTrayIcon *icon, gboolean visible); + + G_END_DECLS |