summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechoosernative.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/gtkfilechoosernative.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/gtkfilechoosernative.c')
-rw-r--r--gtk/gtkfilechoosernative.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfilechoosernative.c b/gtk/gtkfilechoosernative.c
index d28eb23f39..25c17c91e6 100644
--- a/gtk/gtkfilechoosernative.c
+++ b/gtk/gtkfilechoosernative.c
@@ -576,7 +576,7 @@ dialog_response_cb (GtkDialog *dialog,
GtkFileChooserNative *self = data;
g_signal_handlers_disconnect_by_func (self->dialog, dialog_response_cb, self);
- gtk_widget_hide (self->dialog);
+ gtk_widget_set_visible (self->dialog, FALSE);
_gtk_native_dialog_emit_response (GTK_NATIVE_DIALOG (self), response_id);
}
@@ -622,7 +622,7 @@ static void
hide_dialog (GtkFileChooserNative *self)
{
g_signal_handlers_disconnect_by_func (self->dialog, dialog_response_cb, self);
- gtk_widget_hide (self->dialog);
+ gtk_widget_set_visible (self->dialog, FALSE);
}
static gboolean