summaryrefslogtreecommitdiff
path: root/applets/inhibit/inhibit-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/inhibit/inhibit-applet.c')
-rw-r--r--applets/inhibit/inhibit-applet.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c
index 02f1862..74ddd6e 100644
--- a/applets/inhibit/inhibit-applet.c
+++ b/applets/inhibit/inhibit-applet.c
@@ -528,12 +528,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_INHIBIT_APPLET_FACTORY_ID,
+ /* generates inhibit applets instead of regular mate applets */
+ GPM_TYPE_INHIBIT_APPLET,
+ /* the applet name */
+ "InhibitApplet",
+ /* our callback (with no user data) */
+ gpm_applet_cb, NULL)
+#else
MATE_PANEL_APPLET_OUT_PROCESS_FACTORY
(/* the factory iid */
GPM_INHIBIT_APPLET_FACTORY_ID,
- /* generates brighness applets instead of regular mate applets */
+ /* generates inhibit applets instead of regular mate applets */
GPM_TYPE_INHIBIT_APPLET,
/* the applet name */
"InhibitApplet",
/* our callback (with no user data) */
gpm_applet_cb, NULL)
+#endif