[Xfce4-commits] <xfce4-xkb-plugin:master> Destroy menu before creating the new one.

Jérôme Guelfucci noreply at xfce.org
Sat Apr 30 19:50:02 CEST 2011


Updating branch refs/heads/master
         to 2955704cf1518d48942346fe1a00db3c871df682 (commit)
       from 987a41815880496149e89ff6f675c52dfbd2289d (commit)

commit 2955704cf1518d48942346fe1a00db3c871df682
Author: Mikhail Efremov <sem at altlinux.org>
Date:   Sat Apr 30 18:48:26 2011 +0200

    Destroy menu before creating the new one.

 panel-plugin/xfce4-xkb-plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/xfce4-xkb-plugin.c b/panel-plugin/xfce4-xkb-plugin.c
index 74741cd..7fbadc5 100644
--- a/panel-plugin/xfce4-xkb-plugin.c
+++ b/panel-plugin/xfce4-xkb-plugin.c
@@ -366,6 +366,9 @@ xkb_initialize_menu (t_xkb *xkb)
 
     if (G_UNLIKELY (xkb == NULL)) return;
 
+    if (xkb->popup)
+        gtk_widget_destroy (xkb->popup);
+
     xkb->popup = gtk_menu_new ();
     for (i = 0; i < xkb_config_get_group_count (); i++)
     {



More information about the Xfce4-commits mailing list