diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-21 17:09:55 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-21 17:09:55 +0100 |
commit | 1585adb6c7da6c021285bcca0cacbb1976c04d15 (patch) | |
tree | 07f9379b3f91a473fe7157b34a601eb8e7d521bb /libindicator | |
parent | 4b301ff893da66cb0a8f5e4c541efa7e70ee67a3 (diff) | |
download | libayatana-indicator-1585adb6c7da6c021285bcca0cacbb1976c04d15.tar.gz libayatana-indicator-1585adb6c7da6c021285bcca0cacbb1976c04d15.tar.bz2 libayatana-indicator-1585adb6c7da6c021285bcca0cacbb1976c04d15.zip |
indicator-ng: add getters
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/indicator-ng.c | 16 | ||||
-rw-r--r-- | libindicator/indicator-ng.h | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index 32a9e0c..7b2b730 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -458,3 +458,19 @@ indicator_ng_new_for_profile (const gchar *service_file, "profile", profile, NULL); } + +const gchar * +indicator_ng_get_service_file (IndicatorNg *self) +{ + g_return_val_if_fail (INDICATOR_IS_NG (self), NULL); + + return self->service_file; +} + +const gchar * +indicator_ng_get_profile (IndicatorNg *self) +{ + g_return_val_if_fail (INDICATOR_IS_NG (self), NULL); + + return self->profile; +} diff --git a/libindicator/indicator-ng.h b/libindicator/indicator-ng.h index fb4553f..9f19958 100644 --- a/libindicator/indicator-ng.h +++ b/libindicator/indicator-ng.h @@ -22,4 +22,8 @@ IndicatorNg * indicator_ng_new_for_profile (const gchar *service_file, const gchar *profile, GError **error); +const gchar * indicator_ng_get_service_file (IndicatorNg *indicator); + +const gchar * indicator_ng_get_profile (IndicatorNg *indicator); + #endif |