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

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:09 CET 2017


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 ee5d4259c7772a36e252bb78375406fd67724d6a
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 8625f2f..47d77d2 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -1256,6 +1256,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