diff --git a/examples/meson.build b/examples/meson.build index b5c28634ea..8fcc04d547 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -17,7 +17,7 @@ foreach ex : examples '-DGDK_DISABLE_DEPRECATED', '-DGTK_DISABLE_DEPRECATED', '-DGTK_SRCDIR="@0@"'.format(meson.current_source_dir()), - ], + ] + common_cflags, dependencies: libgtk_dep) endforeach diff --git a/examples/plugman.c b/examples/plugman.c index 67d7960c5d..d36b28bfb1 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -135,6 +135,7 @@ plug_man_open (GApplication *application, typedef GtkApplication PlugMan; typedef GtkApplicationClass PlugManClass; +static GType plug_man_get_type (void); G_DEFINE_TYPE (PlugMan, plug_man, GTK_TYPE_APPLICATION) static void @@ -376,10 +377,10 @@ configure_plugins (GSimpleAction *action, dialog = (GtkWidget *)gtk_builder_get_object (builder, "plugin-dialog"); check = (GtkWidget *)gtk_builder_get_object (builder, "red-plugin"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), plugin_enabled ("red")); - g_signal_connect (check, "toggled", G_CALLBACK (enable_or_disable_plugin), "red"); + g_signal_connect (check, "toggled", G_CALLBACK (enable_or_disable_plugin), (char *) "red"); check = (GtkWidget *)gtk_builder_get_object (builder, "black-plugin"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), plugin_enabled ("black")); - g_signal_connect (check, "toggled", G_CALLBACK (enable_or_disable_plugin), "black"); + g_signal_connect (check, "toggled", G_CALLBACK (enable_or_disable_plugin), (char *) "black"); g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); @@ -481,7 +482,7 @@ plug_man_class_init (PlugManClass *class) } -PlugMan * +static PlugMan * plug_man_new (void) { return g_object_new (plug_man_get_type (), diff --git a/examples/sunny.c b/examples/sunny.c index e57e9edd80..3e3fc6a672 100644 --- a/examples/sunny.c +++ b/examples/sunny.c @@ -70,6 +70,7 @@ open (GApplication *application, typedef GtkApplication MenuButton; typedef GtkApplicationClass MenuButtonClass; +static GType menu_button_get_type (void); G_DEFINE_TYPE (MenuButton, menu_button, GTK_TYPE_APPLICATION) static void @@ -176,7 +177,7 @@ menu_button_class_init (MenuButtonClass *class) application_class->open = open; } -MenuButton * +static MenuButton * menu_button_new (void) { return g_object_new (menu_button_get_type (),