← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~ted/indicator-messages/eclipse-on-desktop into lp:indicator-messages

 

Ted Gould has proposed merging lp:~ted/indicator-messages/eclipse-on-desktop into lp:indicator-messages.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)


Make it so that when a desktop file is parsed we check to see if it's
eclipsed by a running application.  Turns out those applications can be
faster than the filesystem.
-- 
https://code.launchpad.net/~ted/indicator-messages/eclipse-on-desktop/+merge/23602
Your team ayatana-commits is subscribed to branch lp:indicator-messages.
=== modified file 'src/messages-service.c'
--- src/messages-service.c	2010-03-31 14:54:24 +0000
+++ src/messages-service.c	2010-04-17 04:35:22 +0000
@@ -1358,6 +1358,14 @@
 			dbusmenu_menuitem_property_set_bool(ll->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
 		}
 
+		/* Check to see if any of the current applications should
+		   be eclipsing us. */
+		GList * server;
+		for (server = serverList; server != NULL; server = g_list_next(server)) {
+			serverList_t * slt = (serverList_t *)server->data;
+			check_eclipses(slt->menuitem);
+		}
+
 		resort_menu(root_menuitem);
 		check_hidden();
 	} else {


Follow ups