]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/scrolbar.cpp
CalcBoundingBox() added so that Max() works in wxDC
[wxWidgets.git] / src / gtk / scrolbar.cpp
index 827cc538d32319ef2c6f457cc5fbcd4a38c2de8c..0cd5adbd318b61917b9f0e6852d9cf2965d8efba 100644 (file)
@@ -126,6 +126,10 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
   gtk_signal_connect( GTK_OBJECT(m_widget), "button_release_event",
           (GtkSignalFunc)gtk_scrollbar_button_release_callback, (gpointer) this );
 
+  m_parent->AddChild( this );
+
+  (m_parent->m_insertCallback)( m_parent, this );
+  
   PostCreation();
   
   SetBackgroundColour( parent->GetBackgroundColour() );
@@ -261,3 +265,10 @@ bool wxScrollBar::IsOwnGtkWindow( GdkWindow *window )
           (window == range->step_forw) ||
           (window == range->step_back) );
 }
+
+void wxScrollBar::ApplyWidgetStyle()
+{
+  SetWidgetStyle();
+  gtk_widget_set_style( m_widget, m_widgetStyle );
+}
+