GNOME Bugzilla – Bug 359581
GtkCellView clobbers parent's GdkWindow on style-set
Last modified: 2006-10-06 18:42:20 UTC
GtkCellView style_set method sets the background of widget->window. Being a NO_WINDOW widget this means its parent's window gets clobbered. Kris suggests to remove the style_set method because it seems to be a leftover from the days when the cellview was a !NO_WINDOW widget and the widget itself is not creating any additional GdkWindow which would need to be notified about the change.
Created attachment 74004 [details] Testcase Pressing any key you can change the widget inside the window form a ComboBox to a ComboBoxEntry and viceversa. With a ComboBox, the debian pattern in the background is clobbered by the CellView style_set method.
Hmm, I guess thats right. A no-window widget should not set the background of its parent window.
2006-10-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcellview.c: Don't set the background of the window in a no-window widget. (#359581, Xan Lopez)