From 8b91e1dd1bcd3f72cd414244ed434cc98227de5d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 Feb 2009 13:34:24 -0600 Subject: Adding in some debug messages and making the signal use the original key to broadcast itself. --- libindicate/indicator.c | 4 +++- libindicate/server.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libindicate/indicator.c b/libindicate/indicator.c index 3b6581b..1c6225e 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -293,9 +293,11 @@ set_property (IndicateIndicator * indicator, const gchar * key, const gchar * da if (current == NULL || strcmp(current, data)) { /* If the value has changed or there is no value */ gchar * newkey = g_strdup(key); + /* g_debug("What is newkey? %s", newkey); */ g_hash_table_insert(priv->properties, newkey, g_strdup(data)); if (indicate_indicator_is_visible(indicator)) { - g_signal_emit(indicator, signals[MODIFIED], 0, newkey, TRUE); + /* g_debug("Indicator property modified: %s %s", key, data); */ + g_signal_emit(indicator, signals[MODIFIED], 0, key, TRUE); } } diff --git a/libindicate/server.c b/libindicate/server.c index 0c74376..ee20321 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -352,6 +352,7 @@ indicator_hide_cb (IndicateIndicator * indicator, IndicateServer * server) static void indicator_modified_cb (IndicateIndicator * indicator, gchar * property, IndicateServer * server) { + /* g_debug("Indicator Modified: %d %s", indicate_indicator_get_id(indicator), property); */ g_signal_emit(server, signals[INDICATOR_MODIFIED], 0, indicate_indicator_get_id(indicator), property, TRUE); } -- cgit v1.2.3