aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-21 13:23:56 -0500
committerTed Gould <ted@canonical.com>2009-10-21 13:23:56 -0500
commit02cb52522a944ae27d9cf0e771eb7c2ae2bb8e53 (patch)
treeed6682d1f9f14fed44cdafb569d89265c29ff5f0 /src
parentb08b15860537896f3605c0c701957966995f014c (diff)
downloadayatana-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.c6
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;
}