Commited fix for wrong background colour in TLWs. I don't
know if this will play well with themes. Alternatively, one could change one of the few lines below to parent == this; git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1bbcb0d516
commit
4adb6d28f7
@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
||||
// widget to draw on
|
||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
||||
|
||||
if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
|
||||
{
|
||||
// find ancestor from which to steal background
|
||||
wxWindow *parent = GetParent();
|
||||
|
@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
||||
// widget to draw on
|
||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
||||
|
||||
if (GetThemeEnabled() && GetBackgroundStyle() == wxBG_STYLE_SYSTEM)
|
||||
if (GetThemeEnabled() && (GetBackgroundStyle() == wxBG_STYLE_SYSTEM) && !IsTopLevel())
|
||||
{
|
||||
// find ancestor from which to steal background
|
||||
wxWindow *parent = GetParent();
|
||||
|
Loading…
Reference in New Issue
Block a user