summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2006-07-27 03:29:44 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2006-07-27 03:29:44 +0000
commit80d39c09c1ceecbf854fa9a8632708e2ab6fe878 (patch)
tree90003c09a77a112a65733512ce778fde46d9bf1a /src
parent216ee62fe1c062a9fb87aa3ce2097e0f8d21a06e (diff)
entry activation makes dialog return OK (Fixes bug #347340).
2006-07-27 Lucas Rocha <lucasr@gnome.org> * src/entry.c (zenity_entry): entry activation makes dialog return OK (Fixes bug #347340).
Diffstat (limited to 'src')
-rw-r--r--src/entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entry.c b/src/entry.c
index 4b0f588..390d9b6 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -99,13 +99,14 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
}
} else {
entry = gtk_entry_new();
+
+ gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
if (entry_data->entry_text)
gtk_entry_set_text (GTK_ENTRY (entry), entry_data->entry_text);
if (entry_data->hide_text)
g_object_set (G_OBJECT (entry), "visibility", FALSE, NULL);
-
}
gtk_widget_show (entry);