diff options
author | Ted Gould <ted@gould.cx> | 2010-04-15 15:47:33 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-04-15 15:47:33 -0500 |
commit | 292ef7667393edf5611ff24814b822ca736bd6ef (patch) | |
tree | 9245d8776129c5870d721e7fcce7f1ca3546da60 | |
parent | 497db3688f51985369e47f72ef283c4c085637d6 (diff) | |
download | ayatana-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
-rw-r--r-- | src/messages-service.c | 6 |
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; |