aboutsummaryrefslogtreecommitdiff
path: root/libindicate/indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-09 10:59:57 -0600
committerTed Gould <ted@canonical.com>2009-02-09 10:59:57 -0600
commit50411f8937483d86f9425f1f06f346f559042ba4 (patch)
treea3ca99852203ebdd401ee363a7059b0f220938e9 /libindicate/indicator.c
parenteb7ca97f4b466902ac2040f1241badb7ecaa3c84 (diff)
downloadlibayatana-indicator-50411f8937483d86f9425f1f06f346f559042ba4.tar.gz
libayatana-indicator-50411f8937483d86f9425f1f06f346f559042ba4.tar.bz2
libayatana-indicator-50411f8937483d86f9425f1f06f346f559042ba4.zip
Only emitting a changed signal on properties changed when the indicator is visible
Diffstat (limited to 'libindicate/indicator.c')
-rw-r--r--libindicate/indicator.c4
1 files changed, 3 insertions, 1 deletions
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;