[Xfce4-commits] <xfce4-taskbar-plugin:master> Fixed a bug with the wnck sub-menus.
Gearoid Murphy
noreply at xfce.org
Fri Apr 19 17:22:01 CEST 2013
Updating branch refs/heads/master
to 1e71dbe3ba4d56155a691d24f1de3491cc3c719b (commit)
from 79a2fd6c65a5879ed25d76fe9dccb2757505ba58 (commit)
commit 1e71dbe3ba4d56155a691d24f1de3491cc3c719b
Author: Gearoid Murphy <gearoid.murphy at hp.com>
Date: Fri Apr 19 16:20:15 2013 +0100
Fixed a bug with the wnck sub-menus.
taskbar-widget.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/taskbar-widget.c b/taskbar-widget.c
index bde51f0..2deaac4 100644
--- a/taskbar-widget.c
+++ b/taskbar-widget.c
@@ -2310,12 +2310,15 @@ static void xfce_taskbar_group_button_menu_destroy(GtkWidget *menu_widget, XfceT
g_debug("xfce_taskbar_group_button_menu_destroy");
xfce_taskbar_disable_hover_menu_timeout(menu_widget);
gtk_widget_destroy (menu_widget);
- #ifdef GDK_WINDOWING_X11
- // Removes the wireframe associated with the currently selected window
- if(group) xfce_taskbar_wireframe_hide (group->taskbar);
- #endif
- // The group button doesn't need to be activated anymore
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (group->button), FALSE);
+ if(group)
+ {
+ #ifdef GDK_WINDOWING_X11
+ // Removes the wireframe associated with the currently selected window
+ if(group) xfce_taskbar_wireframe_hide (group->taskbar);
+ #endif
+ // The group button doesn't need to be activated anymore
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (group->button), FALSE);
+ }
}
More information about the Xfce4-commits
mailing list