]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
#ifdefs for wxMotif which doesn't have a wxTopLevelWindow implementation
[wxWidgets.git] / src / motif / slider.cpp
index 59edd44bb708b84c0b0acf27345620077f8dcb9a..369cecc720141c9e1cfaffc5bf2e0172f4541f95 100644 (file)
 
 void wxSliderCallback (Widget widget, XtPointer clientData, XmScaleCallbackStruct * cbs);
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
 
 BEGIN_EVENT_TABLE(wxSlider, wxControl)
 END_EVENT_TABLE()
-#endif
 
 
 
@@ -302,6 +300,7 @@ void wxSliderCallback (Widget widget, XtPointer clientData, XmScaleCallbackStruc
             // Also send a wxCommandEvent for compatibility.
             wxCommandEvent event2(wxEVT_COMMAND_SLIDER_UPDATED, slider->GetId());
             event2.SetEventObject(slider);
+            event2.SetInt( event.GetInt() );
             slider->ProcessCommand(event2);
             break;
         }