From 7b45f659ffad3db1d40b06dfba3e33fc42fc9eb3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 17 Oct 2009 21:46:45 -0500 Subject: Making sure to get the property names into defines so that we can ensure they're all the same. --- src/libcustomindicator/custom-indicator.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libcustomindicator/custom-indicator.c b/src/libcustomindicator/custom-indicator.c index 320b6e9..c547166 100644 --- a/src/libcustomindicator/custom-indicator.c +++ b/src/libcustomindicator/custom-indicator.c @@ -20,6 +20,13 @@ enum properties { PROP_MENU }; +#define PROP_ID_S "id" +#define PROP_CATEGORY_S "category" +#define PROP_STATUS_S "status" +#define PROP_ICON_NAME_S "icon-name" +#define PROP_ATTENTION_ICON_NAME_S "attention-icon-name" +#define PROP_MENU_S "menu" + #define CUSTOM_INDICATOR_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), CUSTOM_INDICATOR_TYPE, CustomIndicatorPrivate)) @@ -46,7 +53,7 @@ custom_indicator_class_init (CustomIndicatorClass *klass) object_class->get_property = custom_indicator_get_property; g_object_class_install_property(object_class, PROP_STATUS, - g_param_spec_enum("status", + g_param_spec_enum(PROP_STATUS_S, "Indicator Status", "Whether the indicator is shown or requests attention.", CUSTOM_INDICATOR_TYPE_CUSTOM_INDICATOR_STATUS_T, -- cgit v1.2.3