[gedit/zbrown/deteplification-src: 370/633] FileChooserDialog: set standard response codes




commit f0bee0c972a39f8d63dc42247c12d91ab3de8c13
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 4 23:19:09 2020 +0200

    FileChooserDialog: set standard response codes
    
    The same as used by GtkFileChooserNative.

 gedit/gedit-commands-file.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 2a52ba67e..90c347c25 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -381,7 +381,7 @@ open_dialog_response_cb (GeditFileChooserDialog *dialog,
 
        gedit_debug (DEBUG_COMMANDS);
 
-       if (response_id != GTK_RESPONSE_OK)
+       if (response_id != GTK_RESPONSE_ACCEPT)
        {
                gedit_file_chooser_dialog_destroy (dialog);
                return;
@@ -456,7 +456,7 @@ _gedit_cmd_file_open (GSimpleAction *action,
                                                        window != NULL ? GTK_WINDOW (window) : NULL,
                                                        GEDIT_FILE_CHOOSER_OPEN,
                                                        _("_Cancel"), GTK_RESPONSE_CANCEL,
-                                                       _("_Open"), GTK_RESPONSE_OK);
+                                                       _("_Open"), GTK_RESPONSE_ACCEPT);
 
        if (window != NULL)
        {
@@ -701,7 +701,7 @@ save_dialog_response_cb (GeditFileChooserDialog *dialog,
        tab = g_task_get_source_object (task);
        window = g_task_get_task_data (task);
 
-       if (response_id != GTK_RESPONSE_OK)
+       if (response_id != GTK_RESPONSE_ACCEPT)
        {
                gedit_file_chooser_dialog_destroy (dialog);
                g_task_return_boolean (task, FALSE);
@@ -844,7 +844,7 @@ save_as_tab_async (GeditTab            *tab,
                                                        GTK_WINDOW (window),
                                                        GEDIT_FILE_CHOOSER_SAVE,
                                                        _("_Cancel"), GTK_RESPONSE_CANCEL,
-                                                       _("_Save"), GTK_RESPONSE_OK);
+                                                       _("_Save"), GTK_RESPONSE_ACCEPT);
 
        gedit_file_chooser_dialog_set_do_overwrite_confirmation (save_dialog, TRUE);
 


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