aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-15 15:47:33 -0500
committerTed Gould <ted@gould.cx>2010-04-15 15:47:33 -0500
commit292ef7667393edf5611ff24814b822ca736bd6ef (patch)
tree9245d8776129c5870d721e7fcce7f1ca3546da60 /src/messages-service.c
parent497db3688f51985369e47f72ef283c4c085637d6 (diff)
downloadayatana-indicator-messages-292ef7667393edf5611ff24814b822ca736bd6ef.tar.gz
ayatana-indicator-messages-292ef7667393edf5611ff24814b822ca736bd6ef.tar.bz2
ayatana-indicator-messages-292ef7667393edf5611ff24814b822ca736bd6ef.zip
Deleteing shortcuts on update if they need to be
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index da5b49c..c56016e 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -623,11 +623,17 @@ server_shortcuts_changed (AppMenuItem * appitem, gpointer data)
}
appitemfound = TRUE;
+ if (children->data == appitem) {
+ children = g_list_next(children);
+ continue;
+ }
+
if (!DBUSMENU_IS_MENUITEM_PROXY(children->data)) {
break;
}
removelist = g_list_prepend(removelist, children->data);
+ children = g_list_next(children);
}
GList * removeitem;