From ad1cc2dcd28d83bd83ac7ad8f5d97f70546ea900 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 15 Jan 2009 23:19:21 -0600 Subject: Fixing the printing and the saving of indicators. --- libindicate/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libindicate/listener.c') diff --git a/libindicate/listener.c b/libindicate/listener.c index 2c1f3b3..5baa36f 100644 --- a/libindicate/listener.c +++ b/libindicate/listener.c @@ -398,7 +398,7 @@ proxy_indicator_added (DBusGProxy * proxy, guint id, const gchar * type, proxy_t g_hash_table_insert(proxyt->indicators, g_strdup(type), indicators); } - if (g_hash_table_lookup(indicators, (gpointer)id)) { + if (!g_hash_table_lookup(indicators, (gpointer)id)) { g_hash_table_insert(indicators, (gpointer)id, (gpointer)TRUE); g_signal_emit(proxyt->listener, signals[INDICATOR_ADDED], 0, proxyt->name, id, type, TRUE); } -- cgit v1.2.3