GNOME Bugzilla – Bug 640692
GtkNotebook has wrong background colour when border and tabs are turned off when using GtkDrawingArea
Last modified: 2011-03-17 19:48:44 UTC
Created attachment 179410 [details] Short C program demonstrating the glitch For some strange reason, when you have a GtkNotebook with 'show-tabs' AND 'show-border' set to FALSE , the background of a GtkDrawingArea in the GtkNotebook has a *different* background colour to all the other widgets (labels, etc) about. This would appear to be theme dependent (I've been using something old for a while and didn't notice) but definitely crops up with "Dust Sand" and "Elementary". But before we rush off and blame the theme engines :) is there anything about GtkNotebook that might be triggering this when these two properties are turned off? If you only turn off tabs or border, the glitch doesn't occur. AfC
Created attachment 183661 [details] [review] notebook: Don't set notebook style with hidden tabs When tabs are not shown, and the notebook is used as a container, we should not set the notebook style, otherwise the theme has no way to know whether tabs are shown or not, and which colour to draw the background.
I think it makes sense, generally containers that don't render anything themselves don't set any style that could modify stuff downwards either
Pushed to gtk-3-0 and master Attachment 183661 [details] pushed as 90a4f8d - notebook: Don't set notebook style with hidden tabs
*** Bug 644268 has been marked as a duplicate of this bug. ***
*** Bug 645043 has been marked as a duplicate of this bug. ***
*** Bug 642112 has been marked as a duplicate of this bug. ***