aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-12 13:34:24 -0600
committerTed Gould <ted@canonical.com>2009-02-12 13:34:24 -0600
commit8b91e1dd1bcd3f72cd414244ed434cc98227de5d (patch)
tree48503d58ba5d45cf12af91f3cd993e1d8810c15a /libindicate
parent1a5e21eb86c396d5535bfa4f74255740c8ee25d3 (diff)
downloadlibayatana-indicator-8b91e1dd1bcd3f72cd414244ed434cc98227de5d.tar.gz
libayatana-indicator-8b91e1dd1bcd3f72cd414244ed434cc98227de5d.tar.bz2
libayatana-indicator-8b91e1dd1bcd3f72cd414244ed434cc98227de5d.zip
Adding in some debug messages and making the signal use the original key to broadcast itself.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/indicator.c4
-rw-r--r--libindicate/server.c1
2 files changed, 4 insertions, 1 deletions
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);
}