[Xfce4-commits] <xfce4-panel:master> Register the plugin menu to block autohide.

Nick Schermer noreply at xfce.org
Sun Jul 25 15:32:02 CEST 2010


Updating branch refs/heads/master
         to 90d8774fd1152f7c14163aef29a8d16de4b6a8b3 (commit)
       from 3ef0c0c04c609d9ca55279a7b74a96a848ed710c (commit)

commit 90d8774fd1152f7c14163aef29a8d16de4b6a8b3
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jul 25 15:30:46 2010 +0200

    Register the plugin menu to block autohide.

 libxfce4panel/xfce-panel-plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index b35379b..1728a49 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -1138,6 +1138,9 @@ xfce_panel_plugin_menu_get (XfcePanelPlugin *plugin)
       plugin->priv->menu = GTK_MENU (menu);
     }
 
+  /* block autohide when this menu is shown */
+  xfce_panel_plugin_register_menu (plugin, GTK_MENU (plugin->priv->menu));
+
   return plugin->priv->menu;
 }
 



More information about the Xfce4-commits mailing list