X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/385e8575dd1f9219fb0e3f7fa26ffe4c24d2fdbb..cdbd62d6ff290fd58acd1bc5574dfc79db3a6f70:/src/gtk/scrolbar.cpp?ds=inline diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 2ef064b3fa..83418b711c 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -2,7 +2,6 @@ // Name: src/gtk/scrolbar.cpp // Purpose: // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -138,10 +137,7 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, } const bool isVertical = (style & wxSB_VERTICAL) != 0; - if (isVertical) - m_widget = gtk_vscrollbar_new( NULL ); - else - m_widget = gtk_hscrollbar_new( NULL ); + m_widget = gtk_scrollbar_new(GtkOrientation(isVertical), NULL); g_object_ref(m_widget); m_scrollBar[0] = (GtkRange*)m_widget; @@ -235,7 +231,7 @@ void wxScrollBar::SetRange(int range) wxVisualAttributes wxScrollBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) { - return GetDefaultAttributesFromGTKWidget(gtk_vscrollbar_new); + return GetDefaultAttributesFromGTKWidget(gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, NULL)); } #endif // wxUSE_SCROLLBAR