]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/slider.cpp
moved wxWindow::GetBestSize implementation into DoGetBestSize to make it easier to...
[wxWidgets.git] / src / gtk1 / slider.cpp
index f3ab24213f9f949e8eda96895e50e4a8b61325c5..bcd260ad6eeeb5c596cdec3f70099a5311205d04 100644 (file)
@@ -141,10 +141,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
 
     m_parent->DoAddChild( this );
 
 
     m_parent->DoAddChild( this );
 
-    PostCreation();
-    InheritAttributes();
-
-    Show( TRUE );
+    PostCreation(size);
 
     return TRUE;
 }
 
     return TRUE;
 }
@@ -268,12 +265,6 @@ bool wxSlider::IsOwnGtkWindow( GdkWindow *window )
 #endif
 }
 
 #endif
 }
 
-void wxSlider::ApplyWidgetStyle()
-{
-    SetWidgetStyle();
-    gtk_widget_set_style( m_widget, m_widgetStyle );
-}
-
 void wxSlider::GtkDisableEvents()
 {
     gtk_signal_disconnect_by_func( GTK_OBJECT(m_adjust),
 void wxSlider::GtkDisableEvents()
 {
     gtk_signal_disconnect_by_func( GTK_OBJECT(m_adjust),
@@ -289,4 +280,11 @@ void wxSlider::GtkEnableEvents()
                         (gpointer) this );
 }
 
                         (gpointer) this );
 }
 
+// static
+wxVisualAttributes
+wxSlider::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
+{
+    return GetDefaultAttributesFromGTKWidget(gtk_vscale_new);
+}
+
 #endif
 #endif