Implementation of wxSysColourChangedEvent on wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-10-27 17:38:39 +00:00
parent a45f904dea
commit 013151c744
3 changed files with 85 additions and 0 deletions

View File

@@ -452,6 +452,11 @@ static gboolean property_notify_event(
}
}
BEGIN_EVENT_TABLE(wxTopLevelWindowGTK, wxTopLevelWindowBase)
EVT_SYS_COLOUR_CHANGED(wxTopLevelWindowGTK::OnSysColourChanged)
END_EVENT_TABLE()
// ----------------------------------------------------------------------------
// wxTopLevelWindowGTK creation
// ----------------------------------------------------------------------------
@@ -1282,3 +1287,16 @@ 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();
}