GNOME Bugzilla – Bug 663825
calling gtk_progress_bar_set_fraction with a fraction > 1.0 causes the inner progress to overrun the gutter
Last modified: 2011-11-11 15:36:29 UTC
Calling, e.g.: gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), 1.1); causes the inner progress to display over the right-hand gutter edge. The fix for this would be to either return an error for fractions outside the 0..1 range, or to clamp the value inside gtk_progress_bar_set_fraction: if (fraction > 1.0) fraction = 1.0; if (fraction < 0.0) fraction = 0.0;
The following fix has been pushed: 242b1f1 GtkProgressbar: respect the range of 'fraction'
Created attachment 201236 [details] [review] GtkProgressbar: respect the range of 'fraction' The setter should not set the property to values outside the allowed range.