summaryrefslogtreecommitdiffstats
path: root/plugins/xsettings/test-gtk-modules.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:51:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:51:51 +0000
commitb0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7 (patch)
tree9f1d8a08a8cbd19d28ec2d31027f8a7ccd90de0d /plugins/xsettings/test-gtk-modules.c
parentInitial commit. (diff)
downloadgnome-settings-daemon-b0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7.tar.xz
gnome-settings-daemon-b0e30ceba2288eab10c6ff7be0ac0cb05a9ed0b7.zip
Adding upstream version 43.0.upstream/43.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/xsettings/test-gtk-modules.c')
-rw-r--r--plugins/xsettings/test-gtk-modules.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/xsettings/test-gtk-modules.c b/plugins/xsettings/test-gtk-modules.c
new file mode 100644
index 0000000..ef83fc3
--- /dev/null
+++ b/plugins/xsettings/test-gtk-modules.c
@@ -0,0 +1,31 @@
+
+
+#include "gsd-xsettings-gtk.h"
+
+static void
+gtk_modules_callback (GsdXSettingsGtk *gtk,
+ GParamSpec *spec,
+ gpointer user_data)
+{
+ const char *modules;
+
+ modules = gsd_xsettings_gtk_get_modules (gtk);
+ g_message ("GTK+ modules list changed to: %s", modules ? modules : "(empty)");
+}
+
+int main (int argc, char **argv)
+{
+ GMainLoop *loop;
+ GsdXSettingsGtk *gtk;
+
+ gtk = gsd_xsettings_gtk_new ();
+ g_signal_connect (G_OBJECT (gtk), "notify::gtk-modules",
+ G_CALLBACK (gtk_modules_callback), NULL);
+
+ gtk_modules_callback (gtk, NULL, NULL);
+
+ loop = g_main_loop_new (NULL, TRUE);
+ g_main_loop_run (loop);
+
+ return 0;
+}