aboutsummaryrefslogtreecommitdiff
path: root/src/libcustomindicator
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-21 11:31:44 -0500
committerTed Gould <ted@canonical.com>2009-10-21 11:31:44 -0500
commitfdd9a5da2db6332c63f005d964cf6466a3735c4d (patch)
tree60c5d0b71272a9cb85896e75036124a6668b31b8 /src/libcustomindicator
parent795f7d94377f9093e8b3b064e7e020c4f753293d (diff)
downloadayatana-indicator-application-fdd9a5da2db6332c63f005d964cf6466a3735c4d.tar.gz
ayatana-indicator-application-fdd9a5da2db6332c63f005d964cf6466a3735c4d.tar.bz2
ayatana-indicator-application-fdd9a5da2db6332c63f005d964cf6466a3735c4d.zip
Silly, these are enums not ints.
Diffstat (limited to 'src/libcustomindicator')
-rw-r--r--src/libcustomindicator/custom-indicator.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcustomindicator/custom-indicator.c b/src/libcustomindicator/custom-indicator.c
index d28f60e..d1e95ac 100644
--- a/src/libcustomindicator/custom-indicator.c
+++ b/src/libcustomindicator/custom-indicator.c
@@ -351,8 +351,8 @@ custom_indicator_set_property (GObject * object, guint prop_id, const GValue * v
break;
/* *********************** */
case PROP_CATEGORY:
- if (G_VALUE_HOLDS_INT(value)) {
- priv->category = g_value_get_int(value);
+ if (G_VALUE_HOLDS_ENUM(value)) {
+ priv->category = g_value_get_enum(value);
} else if (G_VALUE_HOLDS_STRING(value)) {
GParamSpecEnum * enumspec = G_PARAM_SPEC_ENUM(pspec);
if (enumspec != NULL) {
@@ -371,8 +371,8 @@ custom_indicator_set_property (GObject * object, guint prop_id, const GValue * v
break;
/* *********************** */
case PROP_STATUS:
- if (G_VALUE_HOLDS_INT(value)) {
- priv->status = g_value_get_int(value);
+ if (G_VALUE_HOLDS_ENUM(value)) {
+ priv->status = g_value_get_enum(value);
} else if (G_VALUE_HOLDS_STRING(value)) {
GParamSpecEnum * enumspec = G_PARAM_SPEC_ENUM(pspec);
if (enumspec != NULL) {
@@ -475,9 +475,9 @@ custom_indicator_get_property (GObject * object, guint prop_id, GValue * value,
break;
/* *********************** */
case PROP_CATEGORY:
- if (G_VALUE_HOLDS_INT(value)) {
+ if (G_VALUE_HOLDS_ENUM(value)) {
/* We want the enum value */
- g_value_set_int(value, priv->category);
+ g_value_set_enum(value, priv->category);
} else if (G_VALUE_HOLDS_STRING(value)) {
GParamSpecEnum * enumspec = G_PARAM_SPEC_ENUM(pspec);
if (enumspec != NULL) {
@@ -492,9 +492,9 @@ custom_indicator_get_property (GObject * object, guint prop_id, GValue * value,
break;
/* *********************** */
case PROP_STATUS:
- if (G_VALUE_HOLDS_INT(value)) {
+ if (G_VALUE_HOLDS_ENUM(value)) {
/* We want the enum value */
- g_value_set_int(value, priv->status);
+ g_value_set_enum(value, priv->status);
} else if (G_VALUE_HOLDS_STRING(value)) {
GParamSpecEnum * enumspec = G_PARAM_SPEC_ENUM(pspec);
if (enumspec != NULL) {