X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/afa7bd1eef03eb167b7f70412f1b4ef08ad73138..3e822cd8d0bdf04cd2c7a3dddff61dcc211f7439:/src/gtk/scrolbar.cpp diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 91895aab94..3a44d755f0 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -186,6 +186,10 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, m_widget = gtk_hscrollbar_new( (GtkAdjustment *) NULL ); m_adjust = gtk_range_get_adjustment( GTK_RANGE(m_widget) ); + if ( style & wxSB_VERTICAL ) + { + SetVScrollAdjustment(m_adjust); + } g_signal_connect (m_adjust, "value_changed", G_CALLBACK (gtk_scrollbar_callback), this);