summaryrefslogtreecommitdiff
path: root/sensors-applet
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-06-11 21:48:30 -0400
committerLuke from DC <[email protected]>2023-06-14 02:36:28 +0000
commit50207d611f25070fe307c0b670886b293379e088 (patch)
tree1a67cbddbcc4e1e29d2f070ca15bdee68d831c31 /sensors-applet
parentfc56df38106f664def119611d302d20d0ea65e67 (diff)
downloadmate-sensors-applet-50207d611f25070fe307c0b670886b293379e088.tar.bz2
mate-sensors-applet-50207d611f25070fe307c0b670886b293379e088.tar.xz
port to in-process for wayland support
Diffstat (limited to 'sensors-applet')
-rw-r--r--sensors-applet/Makefile.am24
-rw-r--r--sensors-applet/main.c2
2 files changed, 21 insertions, 5 deletions
diff --git a/sensors-applet/Makefile.am b/sensors-applet/Makefile.am
index 078c7b7..d6021b1 100644
--- a/sensors-applet/Makefile.am
+++ b/sensors-applet/Makefile.am
@@ -19,6 +19,9 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \
$(LIBNOTIFY_CFLAGS) \
$(WARN_CFLAGS)
+mate_sensors_applet_libdir= $(pkglibdir)
+mate_sensors_applet_lib_LTLIBRARIES=libmate_sensors_applet.la
+
LIBS = $(GLIB_LIBS) $(GTK_LIBS) $(MATE_LIBS) $(CAIRO_LIBS) $(LIBNOTIFY_LIBS)
@@ -29,8 +32,23 @@ else
libnotify_SRC =
endif
-libexec_PROGRAMS = mate-sensors-applet
-mate_sensors_applet_SOURCES = main.c \
+libmate_sensors_applet_la_CFLAGS = \
+ $(MATE_APPLETS4_CFLAGS) \
+ $(WARN_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(NULL)
+
+libmate_sensors_applet_la_LDFLAGS = \
+ -module -avoid-version \
+ $(WARN_LDFLAGS) \
+ $(AM_LDFLAGS) \
+ $(NULL)
+
+libmate_sensors_applet_la_LIBADD = \
+ $(MATE_APPLETS4_LIBS) \
+ $(NULL)
+
+libmate_sensors_applet_la_SOURCES = main.c \
about-dialog.c \
about-dialog.h \
active-sensor.c \
@@ -48,8 +66,6 @@ mate_sensors_applet_SOURCES = main.c \
sensors-applet-settings.h \
$(libnotify_SRC)
-mate_sensors_applet_LDADD = -ldl
-
# install headers for plugins to use
INST_H_FILES = sensors-applet-plugin.h sensors-applet-sensor.h
diff --git a/sensors-applet/main.c b/sensors-applet/main.c
index 3aedab2..ce1ea6e 100644
--- a/sensors-applet/main.c
+++ b/sensors-applet/main.c
@@ -42,7 +42,7 @@ static gboolean sensors_applet_fill(MatePanelApplet *applet,
return retval;
}
-MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("SensorsAppletFactory",
+MATE_PANEL_APPLET_IN_PROCESS_FACTORY ("SensorsAppletFactory",
PANEL_TYPE_APPLET,
"SensorsApplet",
sensors_applet_fill,