aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-19 21:53:09 -0500
committerTed Gould <ted@canonical.com>2009-08-19 21:53:09 -0500
commitde5f8b0273d835a96eccdcb2ecb744e41ec082db (patch)
tree3240ab9c38764c304f1d37d7ff210643235bff72 /src/messages-service.c
parentb8adb87bc06248378bc0d72a53c21d566a31e2b4 (diff)
downloadayatana-indicator-messages-de5f8b0273d835a96eccdcb2ecb744e41ec082db.tar.gz
ayatana-indicator-messages-de5f8b0273d835a96eccdcb2ecb744e41ec082db.tar.bz2
ayatana-indicator-messages-de5f8b0273d835a96eccdcb2ecb744e41ec082db.zip
Clean up, clean up, everybody everywhere
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index c3b3db9..c6bc5b8 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -48,6 +48,8 @@ static void resort_menu (DbusmenuMenuitem * menushell);
static void indicator_removed (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gpointer data);
static void check_eclipses (AppMenuItem * ai);
static void remove_eclipses (AppMenuItem * ai);
+static gboolean build_launcher (gpointer data);
+static gboolean build_launchers (gpointer data);
typedef struct _serverList_t serverList_t;
struct _serverList_t {
@@ -540,7 +542,9 @@ remove_eclipses (AppMenuItem * ai)
return;
}
-gboolean
+/* This function turns a specific file into a menu
+ item and registers it appropriately with everyone */
+static gboolean
build_launcher (gpointer data)
{
/* Read the file get the data */
@@ -574,7 +578,11 @@ build_launcher (gpointer data)
return FALSE;
}
-gboolean
+/* This function goes through all the launchers that we're
+ supposed to be grabbing and decides to show turn them
+ into menu items or not. It doens't do the work, but it
+ makes the decision. */
+static gboolean
build_launchers (gpointer data)
{
if (!g_file_test(SYSTEM_APPS_DIR, G_FILE_TEST_IS_DIR)) {