aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-22 12:15:00 -0500
committerTed Gould <ted@gould.cx>2011-07-22 12:15:00 -0500
commit3fc0ec76ff87ba2249171a0dc5527b876df584c3 (patch)
treed9b1e84a6e239b65459a73af18182e38690101a0
parent6fdaf03987ca48e4ca6683c472405f1e44ff60c5 (diff)
downloadayatana-indicator-messages-3fc0ec76ff87ba2249171a0dc5527b876df584c3.tar.gz
ayatana-indicator-messages-3fc0ec76ff87ba2249171a0dc5527b876df584c3.tar.bz2
ayatana-indicator-messages-3fc0ec76ff87ba2249171a0dc5527b876df584c3.zip
Make sure clear attention stays at the end
-rw-r--r--src/messages-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 692960d..f0ccc80 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -965,6 +965,11 @@ resort_menu (DbusmenuMenuitem * menushell)
launcherentry = launcherentry->next;
}
+ if (clear_attention != NULL) {
+ dbusmenu_menuitem_child_reorder(DBUSMENU_MENUITEM(menushell), clear_attention, position);
+ position++; /* Not needed, but reduce bugs on code tacked on here, compiler will remove */
+ }
+
return;
}