aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-17 21:46:45 -0500
committerTed Gould <ted@canonical.com>2009-10-17 21:46:45 -0500
commit7b45f659ffad3db1d40b06dfba3e33fc42fc9eb3 (patch)
tree469baadda67dbfa6face02241e473e199e5d83c0 /src
parenta49c64388e891a46f03ebaf5c8c76d9309de372f (diff)
downloadlibayatana-appindicator-7b45f659ffad3db1d40b06dfba3e33fc42fc9eb3.tar.gz
libayatana-appindicator-7b45f659ffad3db1d40b06dfba3e33fc42fc9eb3.tar.bz2
libayatana-appindicator-7b45f659ffad3db1d40b06dfba3e33fc42fc9eb3.zip
Making sure to get the property names into defines so that we can ensure they're all the same.
Diffstat (limited to 'src')
-rw-r--r--src/libcustomindicator/custom-indicator.c9
1 files changed, 8 insertions, 1 deletions
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,