diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index f87f5acc1e..48f481aa9a 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4005,7 +4005,7 @@ void wxWindowGTK::ApplyWidgetStyle(bool forceStyle) void wxWindowGTK::DoApplyWidgetStyle(GtkRcStyle *style) { - wxSuspendStyleEvents s(this); + wxSuspendStyleEvents s((wxWindow *)this); if (m_wxwindow) gtk_widget_modify_style(m_wxwindow, style);