After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682344 - Entries with dropdown menus no longer work
Entries with dropdown menus no longer work
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-21 11:04 UTC by Frode Austvik
Modified: 2012-08-21 22:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Short patch (on top of git master) that fixes the bug. (998 bytes, patch)
2012-08-21 11:04 UTC, Frode Austvik
none Details | Review

Description Frode Austvik 2012-08-21 11:04:25 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.
Comment 1 Arx Cruz 2012-08-21 22:20:54 UTC
Thanks for the patch! It's already in the master.
Keep sending fixes :)

http://git.gnome.org/browse/zenity/commit/?id=bac509bb12fafb928f9e4009e46cefc63562b4ca