summaryrefslogtreecommitdiff
path: root/sensors-applet/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-12-16 23:31:49 +0100
committerStefano Karapetsas <[email protected]>2012-12-16 23:31:49 +0100
commitfbb7e89c4eab794cc9151e119c7ee94c9494dd7d (patch)
treec1ac3e7845d042dc74d59957e091fcf130764fec /sensors-applet/main.c
parent5a584a07fe8ea0507d4bfe5c1b98f052f0001042 (diff)
downloadmate-sensors-applet-fbb7e89c4eab794cc9151e119c7ee94c9494dd7d.tar.bz2
mate-sensors-applet-fbb7e89c4eab794cc9151e119c7ee94c9494dd7d.tar.xz
migrate to GSettings and remove MateConf usage
migrate to DBUS and remove MateComponent usage remove libmate usage and use glib instead
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);