[Xfce4-commits] <xfce4-session:master> Do not register to menu else the panel never hides (bug #7020).

Nick Schermer noreply at xfce.org
Thu Dec 23 13:36:01 CET 2010


Updating branch refs/heads/master
         to 52ae1a70966a72748ed9bbe00a50aba1ae1cd616 (commit)
       from 82c28435c00be2995f57c1fd0389642d6fff8b20 (commit)

commit 52ae1a70966a72748ed9bbe00a50aba1ae1cd616
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Dec 23 13:34:22 2010 +0100

    Do not register to menu else the panel never hides (bug #7020).

 panel-plugin/xfsm-logout-plugin.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/xfsm-logout-plugin.c b/panel-plugin/xfsm-logout-plugin.c
index 50add83..fe01709 100644
--- a/panel-plugin/xfsm-logout-plugin.c
+++ b/panel-plugin/xfsm-logout-plugin.c
@@ -362,7 +362,7 @@ xfsm_logout_plugin_construct(XfcePanelPlugin *plugin)
 {
     XfsmLogoutPlugin *logout_plugin;
     GtkUIManager *uimgr;
-    GtkWidget *menubar, *mi, *submenu;
+    GtkWidget *menubar, *mi;
 #ifdef HAVE_GETPWUID
     GtkWidget *label;
     struct passwd *pwent;
@@ -407,9 +407,6 @@ xfsm_logout_plugin_construct(XfcePanelPlugin *plugin)
     gtk_container_add(GTK_CONTAINER(plugin), menubar);
     xfce_panel_plugin_add_action_widget(plugin, menubar);
 
-    submenu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(mi));
-    xfce_panel_plugin_register_menu(plugin, GTK_MENU(submenu));
-
     /* returning TRUE from size-changed disables the panel's size
      * handling code for the plugin */
     g_signal_connect(plugin, "size-changed", G_CALLBACK(gtk_true), NULL);



More information about the Xfce4-commits mailing list