[gtranslator: 1/20] file-dialogs: Remove Window calls for Native




commit 6cbd040703a01e4930a56982268009aa9fcd71c1
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Sat Mar 5 12:31:38 2022 +0100

    file-dialogs: Remove Window calls for Native
    
    It is not a window nor a dialog, these calls fail.

 src/gtr-actions-file.c | 1 -
 src/gtr-file-dialogs.c | 4 ----
 2 files changed, 5 deletions(-)
---
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index fb5d4ae5..fd1a1f46 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -554,7 +554,6 @@ gtr_save_file_as_dialog (GtkAction * action, GtrWindow * window)
                     "confirm-overwrite",
                     G_CALLBACK (confirm_overwrite_callback), NULL);
 
-  gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
   g_object_set_data (G_OBJECT (dialog), GTR_TAB_SAVE_AS, current_page);
 
   reply = gtk_native_dialog_run (GTK_NATIVE_DIALOG (dialog));
diff --git a/src/gtr-file-dialogs.c b/src/gtr-file-dialogs.c
index 1972ccb6..f42a159c 100644
--- a/src/gtr-file-dialogs.c
+++ b/src/gtr-file-dialogs.c
@@ -46,8 +46,6 @@ gtr_file_chooser_new (GtkWindow * parent,
                                          FILESEL_SAVE) ? _("_Save") :
                                         _("_Open"), _("_Cancel"));
 
-  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
-
   if (dir)
     gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), dir);
 
@@ -77,7 +75,5 @@ gtr_file_chooser_new (GtkWindow * parent,
       gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
     }
 
-  gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
-
   return GTK_WIDGET (dialog);
 }


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