[Xfce4-commits] <xfce4-indicator-plugin:master> Make sure the menu is closed when the button is removed.

Andrzej noreply at xfce.org
Thu Apr 4 17:44:17 CEST 2013


Updating branch refs/heads/master
         to aaa1b5f89857605cfbc512f17623d2c66e1f1512 (commit)
       from 24788ad2952d8afc4e2135d176bd62a7755a3d87 (commit)

commit aaa1b5f89857605cfbc512f17623d2c66e1f1512
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Wed Jul 25 17:35:50 2012 +0900

    Make sure the menu is closed when the button is removed.

 panel-plugin/indicator-button.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/indicator-button.c b/panel-plugin/indicator-button.c
index ef8fa56..8c2aaa7 100644
--- a/panel-plugin/indicator-button.c
+++ b/panel-plugin/indicator-button.c
@@ -474,6 +474,11 @@ xfce_indicator_button_disconnect_signals (XfceIndicatorButton *button)
 {
   g_return_if_fail (XFCE_IS_INDICATOR_BUTTON (button));
 
+  if (button->menu != 0)
+    {
+      gtk_menu_popdown (button->menu);
+    }
+
   if (button->box_layout_changed_id != 0)
     {
       g_signal_handler_disconnect (button->buttonbox, button->box_layout_changed_id);


More information about the Xfce4-commits mailing list