diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2014-06-10 15:29:21 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-06-10 15:29:21 +0000 |
commit | a31dfc178a8d86f39f5a4f6c51eef991fc3f2402 (patch) | |
tree | fffcb96852e53f6de1bd5cb0356e069670f809ac | |
parent | 5eb4df61d9630cbe0cda3bf0e5d1f81011939a46 (diff) | |
parent | 8380d53d11677d06e0e7036e7a011118d00e5852 (diff) | |
download | libdbusmenu-a31dfc178a8d86f39f5a4f6c51eef991fc3f2402.tar.gz libdbusmenu-a31dfc178a8d86f39f5a4f6c51eef991fc3f2402.tar.bz2 libdbusmenu-a31dfc178a8d86f39f5a4f6c51eef991fc3f2402.zip |
Parser: make sure that the old dbus menuitem is detached from the widget before recreating
When a dbus menuitem has to be recreated, we need to disconnect the widget from it, or
the old one will be reused at next parsing cycle. Fixes: 1086563
-rw-r--r-- | libdbusmenu-gtk/parser.c | 1 |
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); |