summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2022-01-11 20:27:25 +0100
committerCarlos Garnacho <carlosg@gnome.org>2022-03-16 19:50:21 +0100
commita36594e754f8982a00160a18aec65ffbc11297f9 (patch)
tree0437bcb09a072c474ebf51635c14ffb9b96905de
parentc331e22f3a9a252d379cf96ecadda7b0d4dd2e70 (diff)
downloadgtk+-a36594e754f8982a00160a18aec65ffbc11297f9.tar.gz
print-editor: Use gtk_window_present()
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is never invoked.
-rw-r--r--demos/print-editor/print-editor.c2
1 files changed, 1 insertions, 1 deletions
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