← Back to team overview

ayatana-commits team mailing list archive

[Branch ~indicator-applet-developers/indicator-messages/trunk] Rev 220: Make sure to insert in the right locations

 

Merge authors:
  Chris Coulson (chrisccoulson)
Related merge proposals:
  https://code.launchpad.net/~chrisccoulson/indicator-messages/fix-menu-ordering/+merge/68811
  proposed by: Chris Coulson (chrisccoulson)
------------------------------------------------------------
revno: 220 [merge]
committer: Ted Gould <ted@xxxxxxxx>
branch nick: trunk
timestamp: Fri 2011-07-22 11:42:05 -0500
message:
  Make sure to insert in the right locations
modified:
  src/messages-service.c


--
lp:indicator-messages
https://code.launchpad.net/~indicator-applet-developers/indicator-messages/trunk

Your team ayatana-commits is subscribed to branch lp:indicator-messages.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-messages/trunk/+edit-subscription
=== modified file 'src/messages-service.c'
--- src/messages-service.c	2011-07-13 19:26:30 +0000
+++ src/messages-service.c	2011-07-22 09:32:23 +0000
@@ -799,6 +799,8 @@
 	AppMenuItem * appmenu = APP_MENU_ITEM(data_mi);
 	if (!g_strcmp0(INDICATE_LISTENER_SERVER_DBUS_NAME((IndicateListenerServer*)msl->server), INDICATE_LISTENER_SERVER_DBUS_NAME(app_menu_item_get_server(appmenu)))) {
 		msl->found = TRUE;
+		/* Return a position at the end of our shortcuts */
+		msl->position += g_list_length(app_menu_item_get_items(appmenu));		
 	} else {
 		msl->position++;
 	}