aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-07 12:01:04 -0600
committerTed Gould <ted@canonical.com>2009-02-07 12:01:04 -0600
commitf2d14c960f162a40109727405590b628689b3282 (patch)
tree0c1c0ff398aa68bab8acf43b6d0602d6ff5dcbdf /src/indicator-messages.c
parent8bf69500d1c49f46914c98085a975dd159c7b951 (diff)
downloadayatana-indicator-messages-f2d14c960f162a40109727405590b628689b3282.tar.gz
ayatana-indicator-messages-f2d14c960f162a40109727405590b628689b3282.tar.bz2
ayatana-indicator-messages-f2d14c960f162a40109727405590b628689b3282.zip
Adding in some debug messages
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index fc79098..89ad539 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -40,6 +40,7 @@ imList_equal (gconstpointer a, gconstpointer b)
void
server_added (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
+ g_debug("Server Added");
if (type == NULL) {
return;
}
@@ -49,12 +50,13 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha
}
if (strncmp(type, "message", strlen("message"))) {
+ g_debug("\tServer type '%s' is not a message based type.", type);
return;
}
GtkMenuShell * menushell = GTK_MENU_SHELL(data);
if (menushell == NULL) {
- g_error("Data in callback is not a menushell");
+ g_error("\tData in callback is not a menushell");
return;
}
@@ -70,9 +72,11 @@ server_added (IndicateListener * listener, IndicateListenerServer * server, gcha
void
server_removed (IndicateListener * listener, IndicateListenerServer * server, gchar * type, gpointer data)
{
+ g_debug("Removing server: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
gpointer lookup = g_hash_table_lookup(serverHash, INDICATE_LISTENER_SERVER_DBUS_NAME(server));
if (lookup == NULL) {
+ g_debug("\tUnable to find server: %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));
return;
}