]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/slider.cpp
Move code removing "-psn_xxx" command line arguments to common code.
[wxWidgets.git] / src / gtk1 / slider.cpp
index f704d408170fd600286c4482404cc88b02d16a44..1ffa9a4af3bac4add942e545b017b479aeb093d9 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        src/gtk1/slider.cpp
 // Purpose:
 // Author:      Robert Roebling
-// Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -63,7 +62,7 @@ ProcessScrollEvent(wxSlider *win, wxEventType evtType, double dvalue)
         win->HandleWindowEvent( event2 );
     }
 
-    wxCommandEvent cevent( wxEVT_COMMAND_SLIDER_UPDATED, win->GetId() );
+    wxCommandEvent cevent( wxEVT_SLIDER, win->GetId() );
     cevent.SetEventObject( win );
     cevent.SetInt( value );
     win->HandleWindowEvent( cevent );
@@ -125,8 +124,6 @@ static gint gtk_slider_button_release_callback( GtkWidget *scale,
 // wxSlider
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxSlider,wxControl)
-
 bool wxSlider::Create(wxWindow *parent, wxWindowID id,
         int value, int minValue, int maxValue,
         const wxPoint& pos, const wxSize& size,
@@ -145,9 +142,9 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
     m_oldPos = 0.0;
 
     if (style & wxSL_VERTICAL)
-        m_widget = gtk_vscale_new( (GtkAdjustment *) NULL );
+        m_widget = gtk_vscale_new( NULL );
     else
-        m_widget = gtk_hscale_new( (GtkAdjustment *) NULL );
+        m_widget = gtk_hscale_new( NULL );
 
     if (style & wxSL_LABELS)
     {