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