From 4b301ff893da66cb0a8f5e4c541efa7e70ee67a3 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 21 Jan 2013 17:04:02 +0100 Subject: indicator-ng: add indicator_ng_new_for_profile --- libindicator/indicator-ng.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libindicator/indicator-ng.c') diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index 10c362c..32a9e0c 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -447,3 +447,14 @@ indicator_ng_new (const gchar *service_file, "service-file", service_file, NULL); } + +IndicatorNg * +indicator_ng_new_for_profile (const gchar *service_file, + const gchar *profile, + GError **error) +{ + return g_initable_new (INDICATOR_TYPE_NG, NULL, error, + "service-file", service_file, + "profile", profile, + NULL); +} -- cgit v1.2.3