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 330840 - Combo boxes popup list has white background after theme change
Combo boxes popup list has white background after theme change
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.8.x
Other Linux
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-02-11 22:58 UTC by Luca Cavalli
Modified: 2006-12-20 21:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
white.png (15.70 KB, image/png)
2006-02-11 23:00 UTC, Luca Cavalli
  Details
patch to fix this bug (removes gtk_cell_view_style_set) (1.87 KB, patch)
2006-03-22 20:47 UTC, Benjamin Berg
none Details | Review

Description Luca Cavalli 2006-02-11 22:58:23 UTC
Opening a popup list after a theme change will display a list with white background. The list must be accessed at least onece before theme changing to see this effect. GTK version tested is 2.8.10. Clearlooks and Crux themes used (but same effect with all other themes tested).

Steps to reproduce:
1. run gtk-demo and open "Combo boxes" window
2. open the popup list of one of the combo boxes
3. select a different gnome theme and then reselect the old one
4. reopen the popup list of the combo box
Comment 1 Luca Cavalli 2006-02-11 23:00:55 UTC
Created attachment 59156 [details]
white.png

On the left before theme change and on the right after theme change.
Comment 2 Christian Kirbach 2006-02-12 16:47:52 UTC
cannot reproduce with gnome 2.13

can you check with a later release, please?
Comment 3 Luca Cavalli 2006-02-12 17:39:19 UTC
Upgraded to gtk 2.8.12 (gtk only), same effect.
Comment 4 Matthias Clasen 2006-02-13 03:08:22 UTC
doesn't happen for me here. Can you tell me which themes you switch between ?
Comment 5 Luca Cavalli 2006-02-13 09:20:56 UTC
Matthias, switching from Clearlooks to any other theme (tested Mist, Crux and Gorilla) and then back to Clearlooks ends with a white background in popped up combo box list. Using a dark colored Clearlooks may help seeing the effect. I have noted that only Clearlooks based themes are affected, so it is highly likely a theme bug, not gtk. I will try an updated Clearlooks version as soon as possible.
Comment 6 Luca Cavalli 2006-02-13 11:24:33 UTC
Tested gtk-engines 2.7.4, but behaviour is still the same.
Comment 7 Matthias Clasen 2006-02-13 18:17:16 UTC
I don't think we are treating that combo box menu special in any way, style-wise.
Do you see the same problem with other menus ?
Comment 8 Luca Cavalli 2006-02-13 21:15:36 UTC
Matthias, with GtkComboBox and GtkFileChooserButton with GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER opening mode only, no other widgets. I don't really know what to do. It seems I'm the only one to see this behaviour.
Comment 9 Benjamin Berg 2006-03-07 22:07:57 UTC
I am able to reproduce this. It only happens if the GtkMenu had been opened (ie. is realized) when the theme changes.
The menu usually sets bg[NORMAL] as the background color. However for some reason the background color is set to base[NORMAL] of the GtkCellView widget when the style is changed.
Comment 10 Benjamin Berg 2006-03-09 18:59:59 UTC
It looks to me like the gtk_cell_view_style_set function needs to be removed. It sets the background of the window to base[NORMAL] when the theme is changed, but nothing is done when realizing the widget.
Comment 11 Benjamin Berg 2006-03-22 20:47:21 UTC
Created attachment 61793 [details] [review]
patch to fix this bug (removes gtk_cell_view_style_set)
Comment 12 Matthias Clasen 2006-03-22 20:51:16 UTC
Hmm, I had considered that. Problem is that I don't remember why the style set 
implementation is there in the first place. I have a feeling it is to make
cellviews inside menuitems work correctly.
Comment 13 Luca Cavalli 2006-03-22 21:32:07 UTC
Thanks Benjamin. I tested the patch and fixed the problem. I can see no other visual problems with menus or comboboxes. Matthias, if you have a specific test I can perform, let me know.
Comment 14 Matthias Clasen 2006-12-20 21:06:57 UTC
Fix was committed for bug 359581