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:
@@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
|||||||
// widget to draw on
|
// widget to draw on
|
||||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
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
|
// find ancestor from which to steal background
|
||||||
wxWindow *parent = GetParent();
|
wxWindow *parent = GetParent();
|
||||||
|
@@ -3971,7 +3971,7 @@ void wxWindowGTK::GtkSendPaintEvents()
|
|||||||
// widget to draw on
|
// widget to draw on
|
||||||
GtkPizza *pizza = GTK_PIZZA (m_wxwindow);
|
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
|
// find ancestor from which to steal background
|
||||||
wxWindow *parent = GetParent();
|
wxWindow *parent = GetParent();
|
||||||
|
Reference in New Issue
Block a user