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 137066 - No-active-row combobox displays confusingly
No-active-row combobox displays confusingly
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-03-13 15:11 UTC by Owen Taylor
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a simple patch (715 bytes, patch)
2004-03-13 20:38 UTC, Matthias Clasen
none Details | Review

Description Owen Taylor 2004-03-13 15:11:25 UTC
If you have a GtkComboBox with:

 - No bin->child
 - No active row
 - A number of items

Then it displays confusingly because the same GtkCellRenderer
is shared between the main entry and the menu items, so we
just get the properties for the last menu item "sticking"
and showing up for the main entry.

The right solution here is probably to hide the GtkCellView
when there is no active row.
Comment 1 Matthias Clasen 2004-03-13 20:38:38 UTC
Created attachment 25604 [details] [review]
a simple patch
Comment 2 Matthias Clasen 2004-03-13 20:39:29 UTC
A simple patch which makes the cell view bail out of the expose
handler after clearing to the background, if there is no active row.