]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/slider.cpp
Remove duplicate definition caused by last commit.
[wxWidgets.git] / src / gtk1 / slider.cpp
index 27f9bdd3936289402833a27dcf2461c8362b8dea..e7079c5c1018e46500b5fa262d1190f1bb368a49 100644 (file)
@@ -141,11 +141,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
 
     m_parent->DoAddChild( this );
 
-    PostCreation();
-
-    SetBackgroundColour( parent->GetBackgroundColour() );
-
-    Show( TRUE );
+    PostCreation(size);
 
     return TRUE;
 }
@@ -290,4 +286,11 @@ void wxSlider::GtkEnableEvents()
                         (gpointer) this );
 }
 
+// static
+wxVisualAttributes
+wxSlider::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
+{
+    return GetDefaultAttributesFromGTKWidget(gtk_vscale_new);
+}
+
 #endif