[evolution/gnome-3-34] I#719 - e-cal-dialogs: Set default responses for dialogs



commit f45c0801eba63f8c30a2aa3a9f06088cd275a1f9
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 25 10:47:56 2019 +0100

    I#719 - e-cal-dialogs: Set default responses for dialogs
    
    Closes https://gitlab.gnome.org/GNOME/evolution/issues/719

 src/calendar/gui/e-cal-dialogs.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/calendar/gui/e-cal-dialogs.c b/src/calendar/gui/e-cal-dialogs.c
index 68e3fae51b..d084ec86d0 100644
--- a/src/calendar/gui/e-cal-dialogs.c
+++ b/src/calendar/gui/e-cal-dialogs.c
@@ -520,6 +520,7 @@ e_cal_dialogs_prompt_retract (GtkWidget *parent,
        g_free (message);
 
        gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+       gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 
        vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
        gtk_box_set_spacing (GTK_BOX (vbox), 12);
@@ -888,6 +889,7 @@ e_cal_dialogs_recur_component (ECalClient *client,
        dialog = gtk_message_dialog_new (parent, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, "%s", str);
        g_free (str);
        gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+       gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 
        content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 


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