summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.c')
-rw-r--r--src/entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entry.c b/src/entry.c
index 4b0f588a..390d9b6b 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);
bgstack15