aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <marco@ubuntu.com>2017-05-15 11:55:14 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-15 11:55:14 +0200
commit20e557b031ccb95d4c4d7c0c37187060a87b96cf (patch)
tree85fac8e2eba9b61848a1d0f96710c4e1d491e138
parent5b851ffc2d9360970eac46b031f1b9278b3978a8 (diff)
downloadlibayatana-appindicator-20e557b031ccb95d4c4d7c0c37187060a87b96cf.tar.gz
libayatana-appindicator-20e557b031ccb95d4c4d7c0c37187060a87b96cf.tar.bz2
libayatana-appindicator-20e557b031ccb95d4c4d7c0c37187060a87b96cf.zip
AppIndicator: don't emit label cahanges when guide is still empty
-rw-r--r--src/app-indicator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index d05689d..a73e9a4 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -998,6 +998,11 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
gchar * oldguide = priv->label_guide;
priv->label_guide = g_value_dup_string(value);
+ if (priv->label_guide != NULL && priv->label_guide[0] == '\0') {
+ g_free(priv->label_guide);
+ priv->label_guide = NULL;
+ }
+
if (g_strcmp0(oldguide, priv->label_guide) != 0) {
signal_label_change(APP_INDICATOR(object));
}