aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-19 18:48:39 -0500
committerTed Gould <ted@gould.cx>2010-10-19 18:48:39 -0500
commitccea5af6d5cce8bcb3a6f14fa8a4325708e0e71c (patch)
tree3c40f6e5161682fc2269d44de6c95ed250f3feb2
parent3758df51a8e1f7e5b7585a0a62ad07400d1f55fd (diff)
downloadayatana-indicator-application-ccea5af6d5cce8bcb3a6f14fa8a4325708e0e71c.tar.gz
ayatana-indicator-application-ccea5af6d5cce8bcb3a6f14fa8a4325708e0e71c.tar.bz2
ayatana-indicator-application-ccea5af6d5cce8bcb3a6f14fa8a4325708e0e71c.zip
Add a nice little warning in
-rw-r--r--src/app-indicator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 44b1050..5a9e531 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1058,6 +1058,11 @@ dbus_owner_change (DBusGProxy * proxy, const gchar * name, const gchar * prev, c
static void
check_owner_cb (DBusGProxy *proxy, gboolean exists, GError *error, gpointer userdata)
{
+ if (error != NULL) {
+ g_warning("Unable to check for '" NOTIFICATION_WATCHER_DBUS_ADDR "' on DBus. No worries, but concerning.");
+ return;
+ }
+
if (exists) {
dbus_owner_change(proxy, NOTIFICATION_WATCHER_DBUS_ADDR, NULL, "Non NULL", userdata);
}