aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-05-20 01:15:16 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-05-20 01:15:16 +0800
commitf5e9fbef10d6b03ac156a27cfd9ac54451632dec (patch)
tree5a396b19939d153d1438ecf0e9c1ee556e7442d1 /e-util
parentd57e1802891a37ffd4bb212e2022614487fb4369 (diff)
downloadgsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar.gz
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar.bz2
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar.lz
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar.xz
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.tar.zst
gsoc2013-evolution-f5e9fbef10d6b03ac156a27cfd9ac54451632dec.zip
** Fixes bug #530392
2008-05-19 Matthew Barnes <mbarnes@redhat.com> ** 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
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog7
-rw-r--r--e-util/e-util-labels.c2
2 files changed, 9 insertions, 0 deletions
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 <mbarnes@redhat.com>
+
+ ** 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 <mbarnes@redhat.com>
** 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) {