aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-12 11:55:35 -0600
committerTed Gould <ted@gould.cx>2010-01-12 11:55:35 -0600
commit7e5e095f25954857936213bd7136fb1e18583819 (patch)
tree6696ed675804595d7a0a6a7630c7c9ad6a4914c1 /src/libappindicator/app-indicator.c
parent40d3056382d3856f8e22d0bd6d2a4f4a411917f2 (diff)
downloadlibayatana-appindicator-7e5e095f25954857936213bd7136fb1e18583819.tar.gz
libayatana-appindicator-7e5e095f25954857936213bd7136fb1e18583819.tar.bz2
libayatana-appindicator-7e5e095f25954857936213bd7136fb1e18583819.zip
Some comments
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 63f69c9..b28a876 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -568,12 +568,16 @@ check_connect (AppIndicator *self)
return;
}
+/* Responce from the DBus command to register a service
+ with a NotificationWatcher. */
static void
register_service_cb (DBusGProxy * proxy, GError * error, gpointer data)
{
AppIndicatorPrivate * priv = APP_INDICATOR_GET_PRIVATE(data);
if (error != NULL) {
+ /* They didn't respond, ewww. Not sure what they could
+ be doing */
g_warning("Unable to connect to the Notification Watcher: %s", error->message);
g_object_unref(G_OBJECT(priv->watcher_proxy));
priv->watcher_proxy = NULL;
@@ -582,6 +586,8 @@ register_service_cb (DBusGProxy * proxy, GError * error, gpointer data)
return;
}
+/* A helper function to get the nick out of a given
+ category enum value. */
static const gchar *
category_from_enum (AppIndicatorCategory category)
{