From f5e9fbef10d6b03ac156a27cfd9ac54451632dec Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 19 May 2008 17:15:16 +0000 Subject: ** Fixes bug #530392 2008-05-19 Matthew Barnes ** Fixes bug #530392 * e-util/e-util-labels.c (e_util_labels_add_with_dlg): Pressing Enter in the entry activates the default response. svn path=/trunk/; revision=35513 --- e-util/ChangeLog | 7 +++++++ e-util/e-util-labels.c | 2 ++ 2 files changed, 9 insertions(+) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 5465e03bba..d9e9fe8152 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,10 @@ +2008-05-19 Matthew Barnes + + ** Fixes bug #530392 + + * e-util-labels.c (e_util_labels_add_with_dlg): + Pressing Enter in the entry activates the default response. + 2008-05-16 Matthew Barnes ** Fixes part of bug #514383 diff --git a/e-util/e-util-labels.c b/e-util/e-util-labels.c index c62c71dfd4..5c859be975 100644 --- a/e-util/e-util-labels.c +++ b/e-util/e-util-labels.c @@ -326,6 +326,7 @@ e_util_labels_add_with_dlg (GtkWindow *parent, const char *tag) if (name) gtk_entry_set_text (GTK_ENTRY (e), name); + gtk_entry_set_activates_default (GTK_ENTRY (e), TRUE); gtk_label_set_mnemonic_widget (GTK_LABEL (l), e); gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.0); gtk_color_button_set_color (GTK_COLOR_BUTTON (c), &color); @@ -344,6 +345,7 @@ e_util_labels_add_with_dlg (GtkWindow *parent, const char *tag) NULL); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), table, TRUE, TRUE, 0); while (!new_tag) { -- cgit v1.2.3