aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-01 15:05:34 -0500
committerTed Gould <ted@canonical.com>2009-10-01 15:05:34 -0500
commit409250cf0872897c978854038e496432e9006459 (patch)
tree652d9201e743477516440bb8950c17d57a3e01f0
parentf1683d29c06357e95193b4eaaeee50ad5fda521d (diff)
parentd3f418fb7331fa431fef415be10a1c71b024e1fa (diff)
downloadlibdbusmenu-409250cf0872897c978854038e496432e9006459.tar.gz
libdbusmenu-409250cf0872897c978854038e496432e9006459.tar.bz2
libdbusmenu-409250cf0872897c978854038e496432e9006459.zip
Removing from the container
-rw-r--r--debian/changelog6
-rw-r--r--libdbusmenu-gtk/menu.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 1e0f8a6..48af9ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libdbusmenu (0.1.5-0ubuntu1~ppa2~bugfix10) UNRELEASED; urgency=low
+
+ * Removing from the container
+
+ -- Ted Gould <ted@ubuntu.com> Thu, 01 Oct 2009 15:05:20 -0500
+
libdbusmenu (0.1.5-0ubuntu1~ppa2~bugfix9) karmic; urgency=low
* Handling child added differently.
diff --git a/libdbusmenu-gtk/menu.c b/libdbusmenu-gtk/menu.c
index 612709e..ff473dc 100644
--- a/libdbusmenu-gtk/menu.c
+++ b/libdbusmenu-gtk/menu.c
@@ -220,6 +220,12 @@ static void
root_child_delete (DbusmenuMenuitem * root, DbusmenuMenuitem * child, DbusmenuGtkMenu * menu)
{
g_debug("Root child deleted");
+ DbusmenuGtkMenuPrivate * priv = DBUSMENU_GTKMENU_GET_PRIVATE(menu);
+ GtkWidget * item = GTK_WIDGET(dbusmenu_gtkclient_menuitem_get(priv->client, child));
+ if (item != NULL) {
+ gtk_container_remove(GTK_CONTAINER(menu), item);
+ }
+
if (g_list_length(dbusmenu_menuitem_get_children(root)) == 0) {
gtk_widget_hide(GTK_WIDGET(menu));
}