diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:51:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:51:55 +0000 |
commit | 86b7f1a83d7db9c912f32b29c32e1124c0a6454d (patch) | |
tree | 42a7ff7c6885e99e0669d07b104df11b2bf387b6 /plugins/xsettings/test-gtk-modules.c | |
parent | Initial commit. (diff) | |
download | gnome-settings-daemon-86b7f1a83d7db9c912f32b29c32e1124c0a6454d.tar.xz gnome-settings-daemon-86b7f1a83d7db9c912f32b29c32e1124c0a6454d.zip |
Adding upstream version 3.38.2.upstream/3.38.2upstream
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.c | 31 |
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; +} |