evolution r35513 - trunk/e-util
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35513 - trunk/e-util
- Date: Mon, 19 May 2008 17:15:17 +0000 (UTC)
Author: mbarnes
Date: Mon May 19 17:15:16 2008
New Revision: 35513
URL: http://svn.gnome.org/viewvc/evolution?rev=35513&view=rev
Log:
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.
Modified:
trunk/e-util/ChangeLog
trunk/e-util/e-util-labels.c
Modified: trunk/e-util/e-util-labels.c
==============================================================================
--- trunk/e-util/e-util-labels.c (original)
+++ trunk/e-util/e-util-labels.c Mon May 19 17:15:16 2008
@@ -326,6 +326,7 @@
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 @@
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]