constraint editor: Stop using gtk_widget_show/hide
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Nov 2022 11:20:14 +0000 (06:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 28 Nov 2022 19:34:55 +0000 (14:34 -0500)
demos/constraint-editor/constraint-editor-window.c

index b0e6e30f897411e2a0746bcc5a2fade7394e6651..7b6042be25199e120cf3392db3798e11f1ab3f23 100644 (file)
@@ -427,7 +427,7 @@ edit_constraint (ConstraintEditorWindow *win,
 
   g_signal_connect (editor, "done", G_CALLBACK (constraint_editor_done), win);
 
-  gtk_widget_show (window);
+  gtk_window_present (GTK_WINDOW (window));
 }
 
 static void
@@ -460,7 +460,7 @@ edit_guide (ConstraintEditorWindow *win,
   gtk_window_set_child (GTK_WINDOW (window), GTK_WIDGET (editor));
 
   g_signal_connect (editor, "done", G_CALLBACK (guide_editor_done), win);
-  gtk_widget_show (window);
+  gtk_window_present (GTK_WINDOW (window));
 }
 
 static void