Blame SOURCES/0046-gui-apply-configuration-dialogues-changes-on-Enter-k.patch

4b6aa8
From 49815024636c6ca7cc6ebe45b42d7ae33db20127 Mon Sep 17 00:00:00 2001
4b6aa8
From: Jakub Filak <jfilak@redhat.com>
4b6aa8
Date: Fri, 18 Jul 2014 12:20:06 +0200
4b6aa8
Subject: [LIBREPORT PATCH 46/93] gui: apply configuration dialogues changes on
4b6aa8
 Enter key
4b6aa8
4b6aa8
Related to rhbz#1067123
4b6aa8
4b6aa8
Signed-off-by: Jakub Filak <jfilak@redhat.com>
4b6aa8
4b6aa8
Conflicts:
4b6aa8
	src/gtk-helpers/event_config_dialog.c
4b6aa8
	src/gtk-helpers/workflow_config_dialog.c
4b6aa8
---
4b6aa8
 src/gtk-helpers/event_config_dialog.c    | 4 ++++
4b6aa8
 src/gtk-helpers/workflow_config_dialog.c | 2 ++
4b6aa8
 2 files changed, 6 insertions(+)
4b6aa8
4b6aa8
diff --git a/src/gtk-helpers/event_config_dialog.c b/src/gtk-helpers/event_config_dialog.c
4b6aa8
index 9d442d6..659f563 100644
4b6aa8
--- a/src/gtk-helpers/event_config_dialog.c
4b6aa8
+++ b/src/gtk-helpers/event_config_dialog.c
4b6aa8
@@ -122,6 +122,7 @@ static void add_option_to_table(gpointer data, gpointer user_data)
4b6aa8
                              /*left,top:*/ 0, last_row,
4b6aa8
                              /*width,height:*/ 1, 1);
4b6aa8
             option_input = gtk_entry_new();
4b6aa8
+            gtk_entry_set_activates_default(GTK_ENTRY(option_input), TRUE);
4b6aa8
             gtk_widget_set_hexpand(option_input, TRUE);
4b6aa8
             if (option->eo_value != NULL)
4b6aa8
                 gtk_entry_set_text(GTK_ENTRY(option_input), option->eo_value);
4b6aa8
@@ -323,6 +324,9 @@ config_dialog_t *create_event_config_dialog(const char *event_name, GtkWindow *p
4b6aa8
                         GTK_RESPONSE_APPLY,
4b6aa8
                         NULL);
4b6aa8
 
4b6aa8
+
4b6aa8
+    gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_APPLY);
4b6aa8
+
4b6aa8
     /* Allow resize?
4b6aa8
      * W/o resize, e.g. upload configuration hint looks awfully
4b6aa8
      * line wrapped.
4b6aa8
diff --git a/src/gtk-helpers/workflow_config_dialog.c b/src/gtk-helpers/workflow_config_dialog.c
4b6aa8
index 45d7fb6..7b7fe32 100644
4b6aa8
--- a/src/gtk-helpers/workflow_config_dialog.c
4b6aa8
+++ b/src/gtk-helpers/workflow_config_dialog.c
4b6aa8
@@ -89,6 +89,8 @@ config_dialog_t *create_workflow_config_dialog(const char *workflow_name, GtkWin
4b6aa8
                         GTK_RESPONSE_APPLY,
4b6aa8
                         NULL);
4b6aa8
 
4b6aa8
+    gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_APPLY);
4b6aa8
+
4b6aa8
     gtk_window_set_resizable(GTK_WINDOW(dialog), true);
4b6aa8
     gtk_window_set_default_size(GTK_WINDOW(dialog), 450, 450);
4b6aa8
 
4b6aa8
-- 
4b6aa8
1.8.3.1
4b6aa8