Add default activation on entry.
Fixes bgo#630884 - Zenity --password dialog doesn't have a default action
This commit is contained in:
parent
a4743fb2d0
commit
18ed4622ac
@ -123,6 +123,8 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
|
|||||||
password_data->entry_password = gtk_entry_new();
|
password_data->entry_password = gtk_entry_new();
|
||||||
gtk_entry_set_visibility(GTK_ENTRY(password_data->entry_password),
|
gtk_entry_set_visibility(GTK_ENTRY(password_data->entry_password),
|
||||||
FALSE);
|
FALSE);
|
||||||
|
gtk_entry_set_activates_default (GTK_ENTRY(password_data->entry_password),
|
||||||
|
TRUE);
|
||||||
gtk_box_pack_start(GTK_BOX(vbox_entries),
|
gtk_box_pack_start(GTK_BOX(vbox_entries),
|
||||||
password_data->entry_password,
|
password_data->entry_password,
|
||||||
TRUE,
|
TRUE,
|
||||||
|
Reference in New Issue
Block a user