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).
This commit is contained in:
Lucas Rocha 2006-07-27 03:29:44 +00:00 committed by Lucas Almeida Rocha
parent 216ee62fe1
commit 80d39c09c1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-07-27 Lucas Rocha <lucasr@gnome.org>
* src/entry.c (zenity_entry): entry activation makes dialog
return OK (Fixes bug #347340).
2006-07-26 Lucas Rocha <lucasr@gnome.org>
* src/tree.c (zenity_tree_fill_entries_from_stdin, zenity_tree): fix

View File

@ -100,12 +100,13 @@ 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);