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

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