aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-08 08:07:24 -0600
committerTed Gould <ted@gould.cx>2010-01-08 08:07:24 -0600
commit8226d6c8f8870be9d2902fcd2137b242f2559da8 (patch)
tree5de9c81863ef2af472a07a5b936ea3c543e12c0e /src/libappindicator/app-indicator.c
parent83b4f68c5a188d3826beefbe2adddecc0f0a4668 (diff)
downloadlibayatana-appindicator-8226d6c8f8870be9d2902fcd2137b242f2559da8.tar.gz
libayatana-appindicator-8226d6c8f8870be9d2902fcd2137b242f2559da8.tar.bz2
libayatana-appindicator-8226d6c8f8870be9d2902fcd2137b242f2559da8.zip
Using the #defines for the property names instead of strings. Define them once.
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index f9a7c88..739a7e6 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -592,9 +592,9 @@ app_indicator_new (const gchar *id,
AppIndicatorCategory category)
{
AppIndicator *indicator = g_object_new (APP_INDICATOR_TYPE,
- "id", id,
- "category", category_from_enum (category),
- "icon-name", icon_name,
+ PROP_ID_S, id,
+ PROP_CATEGORY_S, category_from_enum (category),
+ PROP_ICON_NAME_S, icon_name,
NULL);
return indicator;
@@ -621,10 +621,10 @@ app_indicator_new_with_path (const gchar *id,
const gchar *icon_path)
{
AppIndicator *indicator = g_object_new (APP_INDICATOR_TYPE,
- "id", id,
- "category", category_from_enum (category),
- "icon-name", icon_name,
- "icon-theme-path", icon_path,
+ PROP_ID_S, id,
+ PROP_CATEGORY_S, category_from_enum (category),
+ PROP_ICON_NAME_S, icon_name,
+ PROP_ICON_THEME_PATH_S, icon_path,
NULL);
return indicator;