/////////////////////////////////////////////////////////////////////////////
-// Name: gtk/settings.cpp
+// Name: src/gtk1/settings.cpp
// Purpose:
// Author: Robert Roebling
// Modified by: Mart Raudsepp (GetMetric)
#include "wx/wxprec.h"
#include "wx/settings.h"
-#include "wx/debug.h"
-#include "wx/cmndata.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/toplevel.h"
+#endif
+
#include "wx/fontutil.h"
-#include "wx/toplevel.h"
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
switch ( type )
{
default:
- wxFAIL_MSG( _T("unexpected GTK widget type") );
+ wxFAIL_MSG( wxT("unexpected GTK widget type") );
// fall through
case wxGTK_BUTTON:
switch ( colour )
{
default:
- wxFAIL_MSG( _T("unexpected GTK colour type") );
+ wxFAIL_MSG( wxT("unexpected GTK colour type") );
// fall through
case wxGTK_FG:
green = col[state].green;
blue = col[state].blue;
- ok = TRUE;
+ ok = true;
}
else
{
- ok = FALSE;
+ ok = false;
}
gtk_widget_destroy( widget );
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<GtkObject*>(tooltips));
}
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;
}
return gs_objects.m_colTooltipText;
+ case wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT:
case wxSYS_COLOUR_HIGHLIGHTTEXT:
if (!gs_objects.m_colHighlightText.Ok())
{
case wxSYS_COLOUR_MAX:
default:
- wxFAIL_MSG( _T("unknown system colour index") );
+ wxFAIL_MSG( wxT("unknown system colour index") );
}
return *wxWHITE;
}
}
-int wxSystemSettingsNative::GetMetric( wxSystemMetric index, wxWindow* win )
+int
+wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(win))
{
switch (index)
{
switch (index)
{
case wxSYS_CAN_ICONIZE_FRAME:
- return FALSE;
+ return false;
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
- return TRUE;
+ return true;
default:
- return FALSE;
+ return false;
}
}