[Xfce4-commits] <xfce4-indicator-plugin:master> no comment

Mark Trompell noreply at xfce.org
Thu Feb 17 08:30:15 CET 2011


Updating branch refs/heads/master
         to 709ad772c8eaa711c3559d06d59b0799891958f2 (commit)
       from 138ceef650314876bce692960e8600ac740349a8 (commit)

commit 709ad772c8eaa711c3559d06d59b0799891958f2
Author: Mark Trompell <mark at foresightlinux.org>
Date:   Tue Jun 2 17:03:42 2009 +0200

    no comment

 panel-plugin/indicator.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index ed7d6ad..ab1cd84 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -185,6 +185,13 @@ indicator_new (XfcePanelPlugin *plugin)
     "widget \"*.indicator-applet-menubar\" style \"indicator-applet-menubar-style\"");
   gtk_widget_set_name(GTK_WIDGET (plugin), "indicator-applet-menubar");
   /* create some panel widgets */
+  indicator->button = gtk_button_new ("foo");
+  gtk_button_set_relief (GTK_BUTTON(indicator->button), GTK_RELIEF_NONE);
+    
+  g_signal_connect (G_OBJECT(mounter->button), "button_press_event",
+                    G_CALLBACK(on_button_press), indicator);
+
+  
   /* Build menu */
   indicator->menu = gtk_menu_bar_new();
   GTK_WIDGET_SET_FLAGS (indicator->menu, GTK_WIDGET_FLAGS(indicator->menu) | GTK_CAN_FOCUS);
@@ -301,9 +308,6 @@ indicator_construct (XfcePanelPlugin *plugin)
 
   /* show the panel's right-click menu on this menu */
   xfce_panel_plugin_add_action_widget (plugin, indicator->button);
-  
-  g_signal_connect (G_OBJECT(mounter->button), "button_press_event",
-                    G_CALLBACK(on_button_press), indicator);
 
   /* connect plugin signals */
   g_signal_connect (G_OBJECT (plugin), "free-data",



More information about the Xfce4-commits mailing list