[gedit] commands-file: use gedit_file_chooser_dialog_get_window()



commit 4daffc847ccb86a0f1876316b977503f7a22df46
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 7 21:47:50 2014 +0100

    commands-file: use gedit_file_chooser_dialog_get_window()
    
    The OS X implementiton returns NULL, the GTK+ implementation returns
    GTK_WINDOW (dialog).

 gedit/gedit-commands-file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 8ab8085..bddb043 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -757,7 +757,9 @@ save_dialog_response_cb (GeditFileChooserDialog *dialog,
                if ((compression_type == GTK_SOURCE_COMPRESSION_TYPE_NONE) !=
                    (current_compression_type == GTK_SOURCE_COMPRESSION_TYPE_NONE))
                {
-                       if (!change_compression (GTK_WINDOW (dialog),
+                       GtkWindow *dialog_window = gedit_file_chooser_dialog_get_window (dialog);
+
+                       if (!change_compression (dialog_window,
                                                 location,
                                                 compression_type != GTK_SOURCE_COMPRESSION_TYPE_NONE))
                        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]