[gedit] gedit: don't assume file chooser is a GtkWindow
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gedit: don't assume file chooser is a GtkWindow
- Date: Wed, 8 Aug 2018 16:04:14 +0000 (UTC)
commit 9ce64b92ffd7c3c5d1a858c0eef20ab3203b97f5
Author: James Henstridge <james jamesh id au>
Date: Wed Jul 11 12:07:46 2018 +0200
gedit: don't assume file chooser is a GtkWindow
gtk_native_dialog_show() will present the dialog, so should be
equivalent.
gedit/gedit-commands-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 6fb65995a..c86df32fa 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -442,7 +442,7 @@ _gedit_cmd_file_open (GSimpleAction *action,
{
g_return_if_fail (GEDIT_IS_FILE_CHOOSER_DIALOG (data));
- gtk_window_present (GTK_WINDOW (data));
+ gedit_file_chooser_dialog_show (GEDIT_FILE_CHOOSER_DIALOG (data));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]