Fix the ComboBoxText construction so the dropmenu works again.

This fixes lp#998445 by changing the code to construct a new ComboBoxText
instead of a ComboBox, which it was (probably accidentally) changed to do
in commit 4421de67.
Closes: lp#998445
This commit is contained in:
Frode Austvik 2012-08-21 11:25:51 +02:00 committed by Arx Cruz
parent e4c5d60ee2
commit bac509bb12

View File

@ -107,7 +107,7 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
n_entries = g_slist_length (entries); n_entries = g_slist_length (entries);
if (n_entries > 1) { if (n_entries > 1) {
entry = gtk_combo_box_new_with_entry (); entry = gtk_combo_box_text_new_with_entry ();
for (tmp = entries; tmp; tmp = tmp->next) { for (tmp = entries; tmp; tmp = tmp->next) {
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (entry), tmp->data); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (entry), tmp->data);