X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355ce7adea8043d72e02cd00aa7f475f3b3be92d..e6db07c3ef23cdec32eecd824117e4c47a5b8f3a:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 4c24ee5c35..3fdc2d8bc8 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -345,7 +345,7 @@ int wxStatusBarGeneric::GetFieldFromPoint(const wxPoint& pt) const if (m_widthsAbs.IsEmpty()) return wxNOT_FOUND; - // NOTE: we explicitely don't take in count the borders since they are only + // NOTE: we explicitly don't take in count the borders since they are only // useful when rendering the status text, not for hit-test computations if (pt.y <= 0 || pt.y >= m_lastClientHeight) @@ -414,9 +414,9 @@ void wxStatusBarGeneric::OnPaint(wxPaintEvent& WXUNUSED(event) ) GdkWindowEdge edge = GetLayoutDirection() == wxLayout_RightToLeft ? GDK_WINDOW_EDGE_SOUTH_WEST : GDK_WINDOW_EDGE_SOUTH_EAST; - gtk_paint_resize_grip( m_widget->style, + gtk_paint_resize_grip(gtk_widget_get_style(m_widget), GTKGetDrawingWindow(), - (GtkStateType) GTK_WIDGET_STATE (m_widget), + gtk_widget_get_state(m_widget), NULL, m_widget, "statusbar",