summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuis Medinas <lmedinas@gnome.org>2010-09-29 12:26:52 +0100
committerLuis Medinas <lmedinas@gnome.org>2010-09-29 14:32:01 +0100
commit18ed4622acad91021976435f693fd560098432c5 (patch)
tree5f5c0e55bcb2b55e7730faf08097995b77e22303 /src
parentNEWS for 2.32.0 release (diff)
downloadzenity-18ed4622acad91021976435f693fd560098432c5.tar.gz
zenity-18ed4622acad91021976435f693fd560098432c5.tar.bz2
zenity-18ed4622acad91021976435f693fd560098432c5.zip
Add default activation on entry.
Fixes bgo#630884 - Zenity --password dialog doesn't have a default action
Diffstat (limited to 'src')
-rw-r--r--src/password.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/password.c b/src/password.c
index 00896eaf..3d9311ab 100644
--- a/src/password.c
+++ b/src/password.c
@@ -123,6 +123,8 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
password_data->entry_password = gtk_entry_new();
gtk_entry_set_visibility(GTK_ENTRY(password_data->entry_password),
FALSE);
+ gtk_entry_set_activates_default (GTK_ENTRY(password_data->entry_password),
+ TRUE);
gtk_box_pack_start(GTK_BOX(vbox_entries),
password_data->entry_password,
TRUE,
bgstack15