builder_example.exe doesn't close on Windows 10
Steps to reproduce
- Compile gtk on Windows 10 using MSYS2
- Run
gtk\release_build\examples\builder_example.exe
- Press the
Quit
button
You will receive the following log message in the console window:
(builder_example.exe:20200): GLib-GObject-WARNING **: 01:48:30.194: ../glib-2.72.1/gobject/gsignal.c:3284: signal id '62' is invalid for instance '0000027a9bb41630'
Current behavior
The Quit
button does nothing.
Expected outcome
The Quit
button closes the application like it does for e.g. grid-packing.exe
.
If we look at https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/builder.c, the surface for a bug seems to be quite small:
static void
quit_cb (GtkWidget *widget, gpointer data)
{
GtkWindow *window = data;
gtk_window_close (window);
}
The button in grid-packing.exe
does this, which works:
g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_destroy), window);
Perhaps gtk_window_destroy
works, but gtk_window_close
has an issue?
Version information
- Windows 10
- MSYS2
mingw-w64-x86_64-gtk4 4.6.3-1
- Default build options, except
-Dgtk_doc=false