aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-20 14:04:58 -0500
committerTed Gould <ted@canonical.com>2009-08-20 14:04:58 -0500
commitb0f699b4d657330edfa56cd27c856db9941d3a0c (patch)
treea6d127597280b4b078725ea164b2343ba7815ddd
parent5b71456f77f4adf58baf085b1550f0bf480949aa (diff)
downloadayatana-indicator-messages-b0f699b4d657330edfa56cd27c856db9941d3a0c.tar.gz
ayatana-indicator-messages-b0f699b4d657330edfa56cd27c856db9941d3a0c.tar.bz2
ayatana-indicator-messages-b0f699b4d657330edfa56cd27c856db9941d3a0c.zip
Adding in a couple of blacklist check point.
-rw-r--r--src/messages-service.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 2020dd3..8743b62 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -143,6 +143,13 @@ launcherList_sort (gconstpointer a, gconstpointer b)
return g_strcmp0(pan, pbn);
}
+static gboolean
+blacklist_check (const gchar * desktop_file)
+{
+
+ return FALSE;
+}
+
static void
server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
@@ -555,6 +562,8 @@ remove_eclipses (AppMenuItem * ai)
const gchar * aidesktop = app_menu_item_get_desktop(ai);
if (aidesktop == NULL) return;
+ if (blacklist_check(aidesktop)) return;
+
GList * llitem;
for (llitem = launcherList; llitem != NULL; llitem = llitem->next) {
launcherList_t * ll = (launcherList_t *)llitem->data;
@@ -602,6 +611,10 @@ build_launcher (gpointer data)
dbusmenu_menuitem_child_append(root_menuitem, DBUSMENU_MENUITEM(ll->menuitem));
resort_menu(root_menuitem);
+ if (blacklist_check(trimdesktop)) {
+ launcher_menu_item_set_eclipsed(ll->menuitem, TRUE);
+ }
+
return FALSE;
}