From 50411f8937483d86f9425f1f06f346f559042ba4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2009 10:59:57 -0600 Subject: Only emitting a changed signal on properties changed when the indicator is visible --- libindicate/indicator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libindicate') diff --git a/libindicate/indicator.c b/libindicate/indicator.c index b77d7d7..cf77316 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -255,7 +255,9 @@ set_property (IndicateIndicator * indicator, const gchar * key, const gchar * da /* If the value has changed or there is no value */ gchar * newkey = g_strdup(key); g_hash_table_insert(priv->properties, newkey, g_strdup(data)); - g_signal_emit(indicator, signals[MODIFIED], 0, newkey, TRUE); + if (indicate_indicator_is_visible(indicator)) { + g_signal_emit(indicator, signals[MODIFIED], 0, newkey, TRUE); + } } return; -- cgit v1.2.3