const bool isVertical = (style & wxSB_VERTICAL) != 0;
if (isVertical)
- m_widget = gtk_vscrollbar_new( (GtkAdjustment *) NULL );
+ m_widget = gtk_vscrollbar_new( NULL );
else
- m_widget = gtk_hscrollbar_new( (GtkAdjustment *) NULL );
+ m_widget = gtk_hscrollbar_new( NULL );
+ g_object_ref(m_widget);
m_scrollBar[0] = (GtkRange*)m_widget;