From 88f7d844a5bfbbd3797fef798086d0cd3ea1a59c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 17 Feb 2010 20:47:52 -0600 Subject: Did I ever talk to you about why I hate while loops? I have to stop using them. They just lead to bugs. --- src/app-menu-item.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app-menu-item.c b/src/app-menu-item.c index e24d43b..b55de2f 100644 --- a/src/app-menu-item.c +++ b/src/app-menu-item.c @@ -417,6 +417,7 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data while (children != NULL) { DbusmenuMenuitemProxy * mip = dbusmenu_menuitem_proxy_new(DBUSMENU_MENUITEM(children->data)); priv->shortcuts = g_list_append(priv->shortcuts, mip); + children = g_list_next(children); } } -- cgit v1.2.3