+ if (style & wxSL_INVERSE)
+ gtk_range_set_inverted( GTK_RANGE(m_widget), TRUE );
+
+ g_signal_connect(m_widget, "button_press_event", G_CALLBACK(gtk_button_press_event), this);
+ g_signal_connect(m_widget, "button_release_event", G_CALLBACK(gtk_button_release_event), this);
+ g_signal_connect(m_widget, "move_slider", G_CALLBACK(gtk_move_slider), this);
+ g_signal_connect(m_widget, "format_value", G_CALLBACK(gtk_format_value), NULL);
+ g_signal_connect(m_widget, "value_changed", G_CALLBACK(gtk_value_changed), this);
+ gulong handler_id;
+ handler_id = g_signal_connect(
+ m_widget, "event_after", G_CALLBACK(gtk_event_after), this);
+ g_signal_handler_block(m_widget, handler_id);
+
+ SetRange( minValue, maxValue );
+ SetValue( value );
+
+ m_parent->DoAddChild( this );
+
+ PostCreation(size);
+
+ return true;