- float fmin = (float)minVal;
- float fmax = (float)maxVal;
-
- if ((fabs(fmin-m_adjust->lower) < sensitivity) &&
- (fabs(fmax-m_adjust->upper) < sensitivity))
- {
- return;
- }
-
- m_adjust->lower = fmin;
- m_adjust->upper = fmax;
-
- g_signal_emit_by_name (m_adjust, "changed");
-
- // these two calls are required due to some bug in GTK
- Refresh();
- SetFocus();