summaryrefslogtreecommitdiff
path: root/sensors-applet/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet/main.c')
-rw-r--r--sensors-applet/main.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sensors-applet/main.c b/sensors-applet/main.c
index c3f7784..dc3a2ed 100644
--- a/sensors-applet/main.c
+++ b/sensors-applet/main.c
@@ -24,12 +24,12 @@
#include <string.h>
#include "sensors-applet.h"
-static gboolean sensors_applet_fill(MatePanelApplet *applet,
- const gchar *iid,
+static gboolean sensors_applet_fill(MatePanelApplet *applet,
+ const gchar *iid,
gpointer data) {
SensorsApplet *sensors_applet;
gboolean retval = FALSE;
- if (strcmp(iid, "OAFIID:SensorsApplet") == 0) {
+ if (strcmp(iid, "SensorsApplet") == 0) {
sensors_applet = g_new0(SensorsApplet, 1);
sensors_applet->applet = applet;
sensors_applet_init(sensors_applet);
@@ -38,9 +38,8 @@ static gboolean sensors_applet_fill(MatePanelApplet *applet,
return retval;
}
-MATE_PANEL_APPLET_MATECOMPONENT_FACTORY ("OAFIID:SensorsApplet_Factory",
- PANEL_TYPE_APPLET,
- PACKAGE,
- PACKAGE_VERSION,
- sensors_applet_fill,
- NULL);
+MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("SensorsAppletFactory",
+ PANEL_TYPE_APPLET,
+ "SensorsApplet",
+ sensors_applet_fill,
+ NULL);