diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcustomindicator/custom-indicator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcustomindicator/custom-indicator.c b/src/libcustomindicator/custom-indicator.c index 07c0f68..002db14 100644 --- a/src/libcustomindicator/custom-indicator.c +++ b/src/libcustomindicator/custom-indicator.c @@ -396,7 +396,11 @@ custom_indicator_set_property (GObject * object, guint prop_id, const GValue * v WARN_BAD_TYPE(PROP_STATUS_S, value); } if (changed) { - g_signal_emit(object, signals[NEW_STATUS], 0, priv->status, TRUE); + GParamSpecEnum * enumspec = G_PARAM_SPEC_ENUM(pspec); + if (enumspec != NULL) { + GEnumValue * enumval = g_enum_get_value(enumspec->enum_class, priv->status); + g_signal_emit(object, signals[NEW_STATUS], 0, enumval->value_nick, TRUE); + } } break; } |