aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app-indicator.c')
-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));
}