[Xfce4-commits] <xfce4-indicator-plugin:master> fix missing menu, when no indicators are found
Mark Trompell
noreply at xfce.org
Thu Feb 17 08:32:10 CET 2011
Updating branch refs/heads/master
to 38226e17623403d142dda61e1f6d2cd15ff8ef8f (commit)
from 6d1612209cc18a1b9f17b87581739675830b8553 (commit)
commit 38226e17623403d142dda61e1f6d2cd15ff8ef8f
Author: Evgeni Golov <evgeni at debian.org>
Date: Tue Jun 29 14:20:58 2010 +0200
fix missing menu, when no indicators are found
panel-plugin/indicator.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 965c054..b769297 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -204,7 +204,8 @@ indicator_new (XfcePanelPlugin *plugin)
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 @@ indicator_construct (XfcePanelPlugin *plugin)
/* 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",
More information about the Xfce4-commits
mailing list