aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-21 11:35:30 -0500
committerTed Gould <ted@canonical.com>2009-10-21 11:35:30 -0500
commitd11f7e6d29609b8d36d834cf9ff229a576c1fe89 (patch)
tree8ee8846744e664113bd75f3f31c36279446beb1a
parentfdd9a5da2db6332c63f005d964cf6466a3735c4d (diff)
downloadayatana-indicator-application-d11f7e6d29609b8d36d834cf9ff229a576c1fe89.tar.gz
ayatana-indicator-application-d11f7e6d29609b8d36d834cf9ff229a576c1fe89.tar.bz2
ayatana-indicator-application-d11f7e6d29609b8d36d834cf9ff229a576c1fe89.zip
Switching from doing the GValues as enums to the more specific types.
-rw-r--r--src/libcustomindicator/custom-indicator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcustomindicator/custom-indicator.c b/src/libcustomindicator/custom-indicator.c
index d1e95ac..c16f052 100644
--- a/src/libcustomindicator/custom-indicator.c
+++ b/src/libcustomindicator/custom-indicator.c
@@ -592,7 +592,7 @@ void
custom_indicator_set_category (CustomIndicator * ci, CustomIndicatorCategory category)
{
GValue value = {0};
- g_value_init(&value, G_TYPE_ENUM);
+ g_value_init(&value, CUSTOM_INDICATOR_TYPE_INDICATOR_CATEGORY);
g_value_set_enum(&value, category);
g_object_set_property(G_OBJECT(ci), PROP_CATEGORY_S, &value);
return;
@@ -609,7 +609,7 @@ void
custom_indicator_set_status (CustomIndicator * ci, CustomIndicatorStatus status)
{
GValue value = {0};
- g_value_init(&value, G_TYPE_ENUM);
+ g_value_init(&value, CUSTOM_INDICATOR_TYPE_INDICATOR_STATUS);
g_value_set_enum(&value, status);
g_object_set_property(G_OBJECT(ci), PROP_STATUS_S, &value);
return;
@@ -694,7 +694,7 @@ CustomIndicatorCategory
custom_indicator_get_category (CustomIndicator * ci)
{
GValue value = {0};
- g_value_init(&value, G_TYPE_ENUM);
+ g_value_init(&value, CUSTOM_INDICATOR_TYPE_INDICATOR_CATEGORY);
g_object_get_property(G_OBJECT(ci), PROP_CATEGORY_S, &value);
return g_value_get_enum(&value);
}
@@ -711,7 +711,7 @@ CustomIndicatorStatus
custom_indicator_get_status (CustomIndicator * ci)
{
GValue value = {0};
- g_value_init(&value, G_TYPE_ENUM);
+ g_value_init(&value, CUSTOM_INDICATOR_TYPE_INDICATOR_STATUS);
g_object_get_property(G_OBJECT(ci), PROP_STATUS_S, &value);
return g_value_get_enum(&value);
}