X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/35d4c96744442614e35c2268f8851912f2a61c50..a2b99ff5a5447ac8b43c4703497ba0627daf92f2:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 8c81811aaa..99fec5e45f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -75,6 +75,12 @@ #ifdef __WXMAC__ #include "wx/mac/private.h" #endif + +// NOTE: If using the wxListBox visual attributes works everywhere then this can +// be removed, as well as the #else case below. +#define _USE_VISATTR 0 + + // ---------------------------------------------------------------------------- // events // ---------------------------------------------------------------------------- @@ -5243,11 +5249,10 @@ bool wxGenericListCtrl::SetFont( const wxFont &font ) } -// NOTE: If using the wxListBox visual attributes works everywhere then this can -// be removed, as well as the #else case below. -#define _USE_VISATTR 0 +#if _USE_VISATTR #include "wx/listbox.h" +#endif //static wxVisualAttributes @@ -5257,6 +5262,7 @@ wxGenericListCtrl::GetClassDefaultAttributes(wxWindowVariant variant) // Use the same color scheme as wxListBox return wxListBox::GetClassDefaultAttributes(variant); #else + wxUnusedVar(variant); wxVisualAttributes attr; attr.colFg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); attr.colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_LISTBOX);