ComboBoxText does not work anymore

Bug #998445 reported by Hizoka
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Zenity
Fix Released
Medium
zenity (Debian)
New
Undecided
Unassigned
zenity (Fedora)
New
Undecided
Unassigned
zenity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

This command does not work anymore :
zenity --entry --title "Window title" --text "Insert your choice." a b c d

I have for reponse :
(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
x 4

and the list is empty...

this command worked very well under Oneiric.

apt-cache policy zenity => 3.4.0-0ubuntu4
lsb_release -rd => Ubuntu 12.04 LTS

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zenity (Ubuntu):
status: New → Confirmed
Revision history for this message
compul (niklas-lemcke) wrote :

i have a similar problem with scim's scim-setup under debian testing. the error message is like:

(scim-setup:10964): GLib-GObject-WARNING **: invalid cast from `GtkComboBoxText' to `GtkEntry'

(scim-setup:10964): Gtk-CRITICAL **: gtk_entry_get_text: assertion `GTK_IS_ENTRY (entry)' failed

the zenity problem occurs for me as well.

i am running a brand new system.

Revision history for this message
EdorFaus (edorfaus) wrote :

Added Linux Mint as the closest project/distro I could find in the lists - I'm actually seeing this on Linux Mint Debian Edition (latest).

apt-cache policy zenity => 3.2.0-1

Revision history for this message
EdorFaus (edorfaus) wrote :

I've written a patch that fixes this. It's a one-line change, only changing which constructor is called - it was calling the one for ComboBox instead of ComboBoxText; from my log reading, that change was probably done accidentally during an API change.

This patch is written on top of current git master, so should be easily upstreamable, but also works on top of the package currently in LMDE latest (3.2.0-1). (I tested that by adding the patch to debian/patches/series and rebuilding, which succeded, and the resulting package has this fixed.)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Simple patch that fixes the bug." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in zenity:
importance: Unknown → Medium
status: Unknown → Fix Released
no longer affects: linuxmint
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.