GNOME Bugzilla – Bug 682344
Entries with dropdown menus no longer work
Last modified: 2012-08-21 22:20:54 UTC
Created attachment 221978 [details] [review] Short patch (on top of git master) that fixes the bug. This command no longer works (it did in GNOME 2): zenity --entry --title "Window title" --text "Insert your choice." a b c d It prints this several times: (zenity:21976): GLib-GObject-WARNING **: invalid cast from `GtkComboBox' to `GtkComboBoxText' (zenity:21976): Gtk-CRITICAL **: gtk_combo_box_text_insert: assertion `GTK_IS_COMBO_BOX_TEXT (combo_box)' failed It does pop up a dialog, but the dropdown menu is empty, and no matter what is written in the entry field, nothing is printed on stdout when OK is pressed. This is Launchpad bug lp#998445 : https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/998445 I have tracked this down to commit 4421de67, which (probably accidentally) changed the ComboBoxText object to a ComboBox, so this has not worked since then - I selected version 3.4.x because I couldn't select more than one version. The attached patch fixes this bug by changing the entry back to a ComboBoxText object.
Thanks for the patch! It's already in the master. Keep sending fixes :) http://git.gnome.org/browse/zenity/commit/?id=bac509bb12fafb928f9e4009e46cefc63562b4ca