summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e03007)
raw | patch | inline | side by side (parent: 4e03007)
author | rwst <rwst@users.sourceforge.net> | |
Sat, 28 Jan 2006 16:18:35 +0000 (16:18 +0000) | ||
committer | rwst <rwst@users.sourceforge.net> | |
Sat, 28 Jan 2006 16:18:35 +0000 (16:18 +0000) |
src/ui/widget/tolerance-slider.cpp | patch | blob | history |
index 12127d06c8be56644cd523204a3c71d239dea65a..170d2e1622e65df3f994ed80e0bc716c2d4cadb1 100644 (file)
@@ -76,20 +76,21 @@ ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& tip, co
void
ToleranceSlider::setValue (double val, bool is_absolute)
{
+fprintf(stderr,"val=%f, isabs=%d\n",val,is_absolute?1:0);
_hscale->set_value (val);
Gtk::Adjustment *adj = _hscale->get_adjustment();
if (is_absolute)
- {
- adj->set_lower (0.4);
- adj->set_upper (50.1);
- adj->set_step_increment (0.1);
- }
- else
{
adj->set_lower (1.0);
adj->set_upper (51.0);
adj->set_step_increment (1.0);
}
+ else
+ {
+ adj->set_lower (0.4);
+ adj->set_upper (50.1);
+ adj->set_step_increment (0.1);
+ }
update();
}