diff options
author | Ted Gould <ted@gould.cx> | 2010-01-08 08:07:24 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-08 08:07:24 -0600 |
commit | 8226d6c8f8870be9d2902fcd2137b242f2559da8 (patch) | |
tree | 5de9c81863ef2af472a07a5b936ea3c543e12c0e | |
parent | 83b4f68c5a188d3826beefbe2adddecc0f0a4668 (diff) | |
download | ayatana-indicator-application-8226d6c8f8870be9d2902fcd2137b242f2559da8.tar.gz ayatana-indicator-application-8226d6c8f8870be9d2902fcd2137b242f2559da8.tar.bz2 ayatana-indicator-application-8226d6c8f8870be9d2902fcd2137b242f2559da8.zip |
Using the #defines for the property names instead of strings. Define them once.
-rw-r--r-- | src/libappindicator/app-indicator.c | 14 |
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; |