[Xfce4-commits] <xfce4-panel:xfce-4.6> Destroy windowlist menu in an idle (bug #3853).
Nick Schermer
noreply at xfce.org
Tue Feb 2 20:24:01 CET 2010
Updating branch refs/heads/xfce-4.6
to b1fdd702f735a40ecbb1e6629bedfe71f2257abc (commit)
from c551f622135ac1109f45162f05fbab9a78d36e2e (commit)
commit b1fdd702f735a40ecbb1e6629bedfe71f2257abc
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Tue Feb 2 20:21:13 2010 +0100
Destroy windowlist menu in an idle (bug #3853).
plugins/windowlist/windowlist.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/plugins/windowlist/windowlist.c b/plugins/windowlist/windowlist.c
index 77c8511..98a8c94 100644
--- a/plugins/windowlist/windowlist.c
+++ b/plugins/windowlist/windowlist.c
@@ -116,6 +116,15 @@ menulist_workspace_name (WnckWorkspace *workspace,
/**
* Menu Actions
**/
+static gboolean
+menu_destroy (gpointer user_data)
+{
+ gtk_widget_destroy (GTK_WIDGET (user_data));
+ return FALSE;
+}
+
+
+
static void
menu_deactivated (GtkWidget *menu,
GtkWidget *button)
@@ -125,7 +134,7 @@ menu_deactivated (GtkWidget *menu,
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
FALSE);
if (menu)
- gtk_widget_destroy (menu);
+ g_idle_add (menu_destroy, menu);
}
More information about the Xfce4-commits
mailing list