]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/scrolbar.cpp
Assert if these methods are triggered to alert the user they are not implemented.
[wxWidgets.git] / src / gtk / scrolbar.cpp
index 413e8fbe3c5f5bf2bb9708d8c215fd80e66a06a2..dc832e0b6c6543bb1400b0d4a56f4f6d7e880484 100644 (file)
@@ -141,9 +141,10 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
 
     const bool isVertical = (style & wxSB_VERTICAL) != 0;
     if (isVertical)
 
     const bool isVertical = (style & wxSB_VERTICAL) != 0;
     if (isVertical)
-        m_widget = gtk_vscrollbar_new( (GtkAdjustment *) NULL );
+        m_widget = gtk_vscrollbar_new( NULL );
     else
     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;
 
 
     m_scrollBar[0] = (GtkRange*)m_widget;