summaryrefslogtreecommitdiff
path: root/applets/brightness/brightness-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/brightness/brightness-applet.c')
-rw-r--r--applets/brightness/brightness-applet.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index ff8f1ef..73242bc 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -1105,12 +1105,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_BRIGHTNESS_APPLET_FACTORY_ID,
+ /* generates brightness applets instead of regular mate applets */
+ GPM_TYPE_BRIGHTNESS_APPLET,
+ /* the applet name */
+ "BrightnessApplet",
+ /* our callback (with no user data) */
+ gpm_applet_cb, NULL)
+#else
MATE_PANEL_APPLET_OUT_PROCESS_FACTORY
(/* the factory iid */
GPM_BRIGHTNESS_APPLET_FACTORY_ID,
- /* generates brighness applets instead of regular mate applets */
+ /* generates brightness applets instead of regular mate applets */
GPM_TYPE_BRIGHTNESS_APPLET,
/* the applet name */
"BrightnessApplet",
/* our callback (with no user data) */
- gpm_applet_cb, NULL);
+ gpm_applet_cb, NULL)
+#endif