aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 20:47:52 -0600
committerTed Gould <ted@gould.cx>2010-02-17 20:47:52 -0600
commit88f7d844a5bfbbd3797fef798086d0cd3ea1a59c (patch)
tree791c2037ec4e37cfd79b0db8fcc4285cae286a4c
parent1df34439fe9a32a2f9f3288d500fdb8a53046185 (diff)
downloadayatana-indicator-messages-88f7d844a5bfbbd3797fef798086d0cd3ea1a59c.tar.gz
ayatana-indicator-messages-88f7d844a5bfbbd3797fef798086d0cd3ea1a59c.tar.bz2
ayatana-indicator-messages-88f7d844a5bfbbd3797fef798086d0cd3ea1a59c.zip
Did I ever talk to you about why I hate while loops? I have to stop using them. They just lead to bugs.
-rw-r--r--src/app-menu-item.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}