get system colors directly from GTK styles, eliminating need for cached wxColor objects

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2008-08-27 17:10:36 +00:00
parent fd1ce7f0bb
commit 0d0b57acec
3 changed files with 110 additions and 285 deletions

View File

@@ -426,10 +426,6 @@ static gboolean property_notify_event(
}
}
BEGIN_EVENT_TABLE(wxTopLevelWindowGTK, wxTopLevelWindowBase)
EVT_SYS_COLOUR_CHANGED(wxTopLevelWindowGTK::OnSysColourChanged)
END_EVENT_TABLE()
// ----------------------------------------------------------------------------
// wxTopLevelWindowGTK creation
// ----------------------------------------------------------------------------
@@ -1362,16 +1358,3 @@ bool wxTopLevelWindowGTK::CanSetTransparent()
"Composite", &opcode, &event, &error);
#endif
}
void wxTopLevelWindowGTK::OnSysColourChanged(wxSysColourChangedEvent& event)
{
// We don't know the order in which top-level windows will
// be notified, so we need to clear the system objects
// for each top-level window.
extern void wxClearGtkSystemObjects();
wxClearGtkSystemObjects();
// wxWindowBase::OnSysColourChanged will propagate event
// to children
event.Skip();
}