aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbusmenu-gtk/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c
index 461927f..cc83e18 100644
--- a/libdbusmenu-gtk/parser.c
+++ b/libdbusmenu-gtk/parser.c
@@ -987,6 +987,7 @@ recreate_menu_item (DbusmenuMenuitem * parent, DbusmenuMenuitem * child)
GtkWidget * menuitem = pdata->widget;
dbusmenu_menuitem_child_delete (parent, child);
+ disconnect_from_widget (menuitem);
RecurseContext recurse = {0};
recurse.toplevel = gtk_widget_get_toplevel(menuitem);