[gtk: 5/6] print-editor: Use gtk_window_present()




commit 25f4e597eed7a216953b01f7693c429bec05b0c9
Author: Guido Günther <agx sigxcpu org>
Date:   Tue Jan 11 20:27:25 2022 +0100

    print-editor: Use gtk_window_present()
    
    This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
    never invoked.

 demos/print-editor/print-editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/print-editor/print-editor.c b/demos/print-editor/print-editor.c
index bfadd5e494..ca5d143d06 100644
--- a/demos/print-editor/print-editor.c
+++ b/demos/print-editor/print-editor.c
@@ -871,7 +871,7 @@ activate (GApplication *app)
 
   update_ui ();
 
-  gtk_widget_show (main_window);
+  gtk_window_present (GTK_WINDOW (main_window));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]