diff options
author | Ted Gould <ted@canonical.com> | 2009-10-21 13:23:56 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-21 13:23:56 -0500 |
commit | 02cb52522a944ae27d9cf0e771eb7c2ae2bb8e53 (patch) | |
tree | ed6682d1f9f14fed44cdafb569d89265c29ff5f0 /src | |
parent | b08b15860537896f3605c0c701957966995f014c (diff) | |
download | ayatana-indicator-application-02cb52522a944ae27d9cf0e771eb7c2ae2bb8e53.tar.gz ayatana-indicator-application-02cb52522a944ae27d9cf0e771eb7c2ae2bb8e53.tar.bz2 ayatana-indicator-application-02cb52522a944ae27d9cf0e771eb7c2ae2bb8e53.zip |
The signal should have a string not a enum value.
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; } |