[Pkg-xfce-commits] r4153 - in goodies/trunk/xfce4-indicator-plugin/debian: . patches

Evgeni Golov evgeni at alioth.debian.org
Tue Jun 29 07:32:27 UTC 2010


Author: evgeni
Date: 2010-06-29 07:32:21 +0000 (Tue, 29 Jun 2010)
New Revision: 4153

Added:
   goodies/trunk/xfce4-indicator-plugin/debian/patches/02_menu_on_no-indicators.patch
Modified:
   goodies/trunk/xfce4-indicator-plugin/debian/changelog
   goodies/trunk/xfce4-indicator-plugin/debian/patches/series
Log:
Display a menu even when there are no indicators.
closes: #587167


Modified: goodies/trunk/xfce4-indicator-plugin/debian/changelog
===================================================================
--- goodies/trunk/xfce4-indicator-plugin/debian/changelog	2010-06-19 11:20:11 UTC (rev 4152)
+++ goodies/trunk/xfce4-indicator-plugin/debian/changelog	2010-06-29 07:32:21 UTC (rev 4153)
@@ -3,8 +3,10 @@
   * debian/control:
     + Add Provides: indicator-renderer
     + Add Recommends: indicator-messages
+  * debian/patches/02_menu_on_no-indicators.patch
+    + Display a menu even when there are no indicators.        closes: #587167
 
- -- Evgeni Golov <evgeni at debian.org>  Thu, 17 Jun 2010 17:25:38 +0200
+ -- Evgeni Golov <evgeni at debian.org>  Tue, 29 Jun 2010 09:30:40 +0200
 
 xfce4-indicator-plugin (0.0.1-1) unstable; urgency=low
 

Added: goodies/trunk/xfce4-indicator-plugin/debian/patches/02_menu_on_no-indicators.patch
===================================================================
--- goodies/trunk/xfce4-indicator-plugin/debian/patches/02_menu_on_no-indicators.patch	                        (rev 0)
+++ goodies/trunk/xfce4-indicator-plugin/debian/patches/02_menu_on_no-indicators.patch	2010-06-29 07:32:21 UTC (rev 4153)
@@ -0,0 +1,27 @@
+Description: add a menu in the case there are no indicators
+Forwarded: Yes
+Author: Evgeni Golov <evgeni at debian.org>
+Bug-Debian: http://bugs.debian.org/587167
+Last-Update: 2010-06-29
+
+diff -r 630cdff47172 panel-plugin/indicator.c
+--- a/panel-plugin/indicator.c	Mon Jun 07 11:12:31 2010 +0200
++++ b/panel-plugin/indicator.c	Tue Jun 29 08:42:35 2010 +0200
+@@ -204,7 +204,8 @@
+ 
+   if (indicators_loaded == 0) {
+     /* A label to allow for click through */
+-    indicator->item = gtk_label_new(_("No Indicators"));
++    indicator->item = xfce_create_panel_button();
++    gtk_button_set_label(indicator->item, _("No Indicators"));
+     gtk_widget_show(indicator->item);
+     gtk_container_add (GTK_CONTAINER (plugin), indicator->item);
+   } else {
+@@ -293,6 +294,7 @@
+ 
+   /* show the panel's right-click menu on this menu */
+   xfce_panel_plugin_add_action_widget (plugin, indicator->menu);
++  xfce_panel_plugin_add_action_widget (plugin, indicator->item);
+ 
+   /* connect plugin signals */
+   g_signal_connect (G_OBJECT (plugin), "free-data",

Modified: goodies/trunk/xfce4-indicator-plugin/debian/patches/series
===================================================================
--- goodies/trunk/xfce4-indicator-plugin/debian/patches/series	2010-06-19 11:20:11 UTC (rev 4152)
+++ goodies/trunk/xfce4-indicator-plugin/debian/patches/series	2010-06-29 07:32:21 UTC (rev 4153)
@@ -1 +1,2 @@
 01_libindicator0.3.0_compat.patch
+02_menu_on_no-indicators.patch




More information about the Pkg-xfce-commits mailing list