aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-21 17:04:02 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-21 17:04:02 +0100
commit4b301ff893da66cb0a8f5e4c541efa7e70ee67a3 (patch)
tree5a828e0b4c0c3c86ccd06a1f1c091240adbf8b26 /libindicator
parent869d977e5add09a08ec6e1fcf1d77f8286adca53 (diff)
downloadlibayatana-indicator-4b301ff893da66cb0a8f5e4c541efa7e70ee67a3.tar.gz
libayatana-indicator-4b301ff893da66cb0a8f5e4c541efa7e70ee67a3.tar.bz2
libayatana-indicator-4b301ff893da66cb0a8f5e4c541efa7e70ee67a3.zip
indicator-ng: add indicator_ng_new_for_profile
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-ng.c11
-rw-r--r--libindicator/indicator-ng.h10
2 files changed, 18 insertions, 3 deletions
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);
+}
diff --git a/libindicator/indicator-ng.h b/libindicator/indicator-ng.h
index 4dd333e..fb4553f 100644
--- a/libindicator/indicator-ng.h
+++ b/libindicator/indicator-ng.h
@@ -13,9 +13,13 @@
typedef struct _IndicatorNg IndicatorNg;
typedef IndicatorObjectClass IndicatorNgClass;
-GType indicator_ng_get_type (void);
+GType indicator_ng_get_type (void);
-IndicatorNg * indicator_ng_new (const gchar *service_file,
- GError **error);
+IndicatorNg * indicator_ng_new (const gchar *service_file,
+ GError **error);
+
+IndicatorNg * indicator_ng_new_for_profile (const gchar *service_file,
+ const gchar *profile,
+ GError **error);
#endif