diff options
author | Ted Gould <ted@canonical.com> | 2009-10-21 11:35:30 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-21 11:35:30 -0500 |
commit | d11f7e6d29609b8d36d834cf9ff229a576c1fe89 (patch) | |
tree | 8ee8846744e664113bd75f3f31c36279446beb1a /src | |
parent | fdd9a5da2db6332c63f005d964cf6466a3735c4d (diff) | |
download | ayatana-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/libcustomindicator/custom-indicator.c | 8 |
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); } |