summaryrefslogtreecommitdiff
path: root/gtk/gtkprintbackend.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-11-28 13:43:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-11-28 14:34:55 -0500
commitf339cc276c972f31bf4c94c0faa8abd8069858b1 (patch)
tree0a3ed935e824caea2694587f239041d001f530bf /gtk/gtkprintbackend.c
parent90c986e493eeaa2c95ca53c88be3e3b19086e0c3 (diff)
downloadgtk+-f339cc276c972f31bf4c94c0faa8abd8069858b1.tar.gz
gtk: Stop using gtk_widget_show/hide
gtk_widget_set_visible and gtk_window_present are better alternatives, and calling gtk_widget_show on newly created widgets is no longer necessary anyway.
Diffstat (limited to 'gtk/gtkprintbackend.c')
-rw-r--r--gtk/gtkprintbackend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 0b0cdef17d..1fd4c3572b 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -733,7 +733,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (password_dialog_response), backend);
- gtk_widget_show (dialog);
+ gtk_window_present (GTK_WINDOW (dialog));
}
void