[Xfce4-commits] [xfce/xfce4-panel] 01/02: Actions: Fix panel autohide broken by the actions menu (bug #8960)

noreply at xfce.org noreply at xfce.org
Sun Jun 22 11:57:05 CEST 2014


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 84ed100fee5b4573b768e5b8f130785ab5b3c5bd
Author: Petr Gajdůšek <gajdusek.petr at centrum.cz>
Date:   Sun Oct 14 07:49:28 2012 +0200

    Actions: Fix panel autohide broken by the actions menu (bug #8960)
    
    Check the button toggle status in actions_plugin_menu() and avoid to popup
    the menu if the button is not pressed.
    
    Signed-off-by: Petr Gajdůšek <gajdusek.petr at centrum.cz>
---
 plugins/actions/actions.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index abf6bf6..f590369 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -1253,6 +1253,11 @@ actions_plugin_menu (GtkWidget     *button,
 
   panel_return_if_fail (XFCE_IS_ACTIONS_PLUGIN (plugin));
 
+  // do not popup the menu if the button is being toggled off
+  if (button != NULL
+      && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (button)))
+    return;
+
   if (plugin->menu == NULL)
     {
       plugin->menu = gtk_menu_new ();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list