diff --git a/atom/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc index 6d19a2eda464..d4dfcdd1fd05 100644 --- a/atom/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -151,7 +151,7 @@ class FileChooserDialog { }; void FileChooserDialog::OnFileDialogResponse(GtkWidget* widget, int response) { - gtk_widget_hide_all(dialog_); + gtk_widget_hide(dialog_); if (!save_callback_.is_null()) { if (response == GTK_RESPONSE_ACCEPT) diff --git a/atom/browser/ui/message_box_gtk.cc b/atom/browser/ui/message_box_gtk.cc index 6d0bff3fb2dc..b09ccdd48279 100644 --- a/atom/browser/ui/message_box_gtk.cc +++ b/atom/browser/ui/message_box_gtk.cc @@ -156,7 +156,7 @@ class GtkMessageBox { }; void GtkMessageBox::OnResponseDialog(GtkWidget* widget, int response) { - gtk_widget_hide_all(dialog_); + gtk_widget_hide(dialog_); if (response < 0) callback_.Run(cancel_id_);