}
// accessors
- int GetValue(wxSPINCTRL_GETVALUE_FIX) const
- { return wxRound( DoGetValue() ); }
- int GetMin() const { return wxRound( m_min ); }
- int GetMax() const { return wxRound( m_max ); }
- int GetIncrement() const { return wxRound( m_increment ); }
+ int GetValue(wxSPINCTRL_GETVALUE_FIX) const { return int(DoGetValue()); }
+ int GetMin() const { return int(m_min); }
+ int GetMax() const { return int(m_max); }
+ int GetIncrement() const { return int(m_increment); }
// operations
void SetValue(const wxString& value)
}
// accessors
- int GetValue() const { return wxRound( DoGetValue() ); }
- int GetMin() const { return wxRound( DoGetMin() ); }
- int GetMax() const { return wxRound( DoGetMax() ); }
- int GetIncrement() const { return wxRound( DoGetIncrement() ); }
+ int GetValue() const { return int(DoGetValue()); }
+ int GetMin() const { return int(DoGetMin()); }
+ int GetMax() const { return int(DoGetMax()); }
+ int GetIncrement() const { return int(DoGetIncrement()); }
// operations
void SetValue(const wxString& value) { wxSpinCtrlGTKBase::SetValue(value); } // visibility problem w/ gcc
{
wxCHECK_RET( (m_widget != NULL), wxT("invalid spin button") );
- if (wxIsKindOf(this, wxSpinCtrl))
- value = wxRound( value );
-
GtkDisableEvents();
gtk_spin_button_set_value( GTK_SPIN_BUTTON(m_widget), value);
GtkEnableEvents();