diff options
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 |