[gtk: 4/6] demo: Use gtk_window_present()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 4/6] demo: Use gtk_window_present()
- Date: Mon, 28 Feb 2022 17:29:10 +0000 (UTC)
commit db8339ca66ef75b7b71bf2603c1b5910c1708b89
Author: Guido Günther <agx sigxcpu org>
Date: Tue Jan 11 20:27:25 2022 +0100
demo: Use gtk_window_present()
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.
demos/gtk-demo/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index da6b5db73a..a31ce36790 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -1040,7 +1040,7 @@ out:
g_signal_connect_swapped (G_OBJECT (demo), "destroy", G_CALLBACK (g_application_quit), app);
}
else
- gtk_widget_show (GTK_WIDGET (window));
+ gtk_window_present (GTK_WINDOW (window));
if (autoquit)
g_timeout_add_seconds (1, auto_quit, app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]