return s_rendererGTK;
}
-GdkWindow* wxGetGdkWindowForDC(wxWindow* win, wxDC& dc)
+static GdkWindow* wxGetGdkWindowForDC(wxDC& dc)
{
GdkWindow* gdk_window = NULL;
#if wxUSE_NEW_DC
GtkWidget *button = wxGTKPrivate::GetHeaderButtonWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
{
GtkWidget *tree = wxGTKPrivate::GetTreeWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
return;
}
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
// work for wxMemoryDC. So that is why we assume wxDC
// is wxWindowDC (wxClientDC, wxMemoryDC and wxPaintDC
// are derived from it) and use its m_window.
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
{
GtkWidget *button = wxGTKPrivate::GetCheckButtonWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
{
GtkWidget *button = wxGTKPrivate::GetButtonWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
const wxRect& rect,
int flags )
{
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
void wxRendererGTK::DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
{
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
}
// Uses the theme to draw the border and fill for something like a wxTextCtrl
-void wxRendererGTK::DrawTextCtrl(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
+void wxRendererGTK::DrawTextCtrl(wxWindow*, wxDC& dc, const wxRect& rect, int flags)
{
GtkWidget *entry = wxGTKPrivate::GetTextEntryWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
GtkStateType state = GTK_STATE_NORMAL;
if ( flags & wxCONTROL_DISABLED )
}
// Draw the equivallent of a wxComboBox
-void wxRendererGTK::DrawComboBox(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
+void wxRendererGTK::DrawComboBox(wxWindow*, wxDC& dc, const wxRect& rect, int flags)
{
GtkWidget *combo = wxGTKPrivate::GetComboBoxWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
GtkStateType state = GTK_STATE_NORMAL;
if ( flags & wxCONTROL_DISABLED )
// Draw a themed radio button
-void wxRendererGTK::DrawRadioButton(wxWindow* win, wxDC& dc, const wxRect& rect, int flags)
+void wxRendererGTK::DrawRadioButton(wxWindow*, wxDC& dc, const wxRect& rect, int flags)
{
GtkWidget *button = wxGTKPrivate::GetRadioButtonWidget();
- GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
+ GdkWindow* gdk_window = wxGetGdkWindowForDC(dc);
GtkShadowType shadow_type = GTK_SHADOW_OUT;
if ( flags & wxCONTROL_CHECKED )
GtkStateType state = GTK_STATE_NORMAL;
if ( flags & wxCONTROL_DISABLED )
- state = GTK_STATE_INSENSITIVE;
+ state = GTK_STATE_INSENSITIVE;
if ( flags & wxCONTROL_PRESSED )
- state = GTK_STATE_ACTIVE;
+ state = GTK_STATE_ACTIVE;
/*
Don't know when to set this
state_type = GTK_STATE_PRELIGHT;