summaryrefslogtreecommitdiff
path: root/applets/power-profiles/power-profiles-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/power-profiles/power-profiles-applet.c')
-rw-r--r--applets/power-profiles/power-profiles-applet.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/applets/power-profiles/power-profiles-applet.c b/applets/power-profiles/power-profiles-applet.c
index 87e2758..7b3c06d 100644
--- a/applets/power-profiles/power-profiles-applet.c
+++ b/applets/power-profiles/power-profiles-applet.c
@@ -681,12 +681,24 @@ gpm_applet_cb (MatePanelApplet *_applet, const gchar *iid, gpointer data)
/**
* this generates a main with a applet factory
**/
+#ifdef APPLETS_INPROCESS
+MATE_PANEL_APPLET_IN_PROCESS_FACTORY
+ (/* the factory iid */
+ GPM_POWER_PROFILES_APPLET_FACTORY_ID,
+ /* generates power profiles applets instead of regular mate applets */
+ GPM_TYPE_POWER_PROFILES_APPLET,
+ /* the applet name */
+ "PowerProfilesApplet",
+ /* our callback (with no user data) */
+ gpm_applet_cb, NULL)
+#else
MATE_PANEL_APPLET_OUT_PROCESS_FACTORY
(/* the factory iid */
GPM_POWER_PROFILES_APPLET_FACTORY_ID,
- /* generates brighness applets instead of regular mate applets */
+ /* generates power profiles applets instead of regular mate applets */
GPM_TYPE_POWER_PROFILES_APPLET,
/* the applet name */
"PowerProfilesApplet",
/* our callback (with no user data) */
gpm_applet_cb, NULL)
+#endif