X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce5d92e15071d65b430f11efa548076beeb9673c..3508c1432884472f0d24f0f98c0dc75ed35df297:/src/gtk1/settings.cpp diff --git a/src/gtk1/settings.cpp b/src/gtk1/settings.cpp index a5348ebaad..34887192ba 100644 --- a/src/gtk1/settings.cpp +++ b/src/gtk1/settings.cpp @@ -15,10 +15,10 @@ #ifndef WX_PRECOMP #include "wx/cmndata.h" + #include "wx/toplevel.h" #endif #include "wx/fontutil.h" -#include "wx/toplevel.h" #include #include @@ -149,7 +149,7 @@ static void GetTooltipColors() gs_objects.m_colTooltip = wxColor(c.red >> SHIFT, c.green >> SHIFT, c.blue >> SHIFT); c = tooltips->tip_window->style->fg[GTK_STATE_NORMAL]; gs_objects.m_colTooltipText = wxColor(c.red >> SHIFT, c.green >> SHIFT, c.blue >> SHIFT); - gtk_object_sink(wx_reinterpret_cast(GtkObject*, tooltips)); + gtk_object_sink(reinterpret_cast(tooltips)); } wxColour wxSystemSettingsNative::GetColour( wxSystemColour index ) @@ -250,6 +250,7 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index ) case wxSYS_COLOUR_CAPTIONTEXT: case wxSYS_COLOUR_INACTIVECAPTIONTEXT: case wxSYS_COLOUR_BTNTEXT: + case wxSYS_COLOUR_LISTBOXTEXT: if (!gs_objects.m_colBtnText.Ok()) { int red, green, blue; @@ -357,7 +358,8 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index ) } } -int wxSystemSettingsNative::GetMetric( wxSystemMetric index, wxWindow* win ) +int +wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win)) { switch (index) {