From 1585adb6c7da6c021285bcca0cacbb1976c04d15 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 21 Jan 2013 17:09:55 +0100 Subject: indicator-ng: add getters --- libindicator/indicator-ng.c | 16 ++++++++++++++++ libindicator/indicator-ng.h | 4 ++++ 2 files changed, 20 insertions(+) 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 -- cgit v1.2.3