Add parentheses to fix the operator order in the icon selection.
2007-07-02 Jan Arne Petersen <jpetersen@jpetersen.org> * gtk/gtkscalebutton.c: (gtk_scale_button_update_icon): Add parentheses to fix the operator order in the icon selection. svn path=/trunk/; revision=18331
This commit is contained in:
committed by
Jan Arne Petersen
parent
bd2067643d
commit
a49af56418
@@ -1,3 +1,8 @@
|
||||
2007-07-02 Jan Arne Petersen <jpetersen@jpetersen.org>
|
||||
|
||||
* gtk/gtkscalebutton.c: (gtk_scale_button_update_icon): Add
|
||||
parentheses to fix the operator order in the icon selection.
|
||||
|
||||
2007-07-01 Johan Dahlin <jdahlin@async.com.br>
|
||||
|
||||
* gtk/gtk-builder-convert (GtkBuilderConverter):
|
||||
|
||||
@@ -1264,7 +1264,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
|
||||
guint i;
|
||||
|
||||
step = (adj->upper - adj->lower) / (num_icons - 2);
|
||||
i = (guint) (value - adj->lower) / step + 2;
|
||||
i = (guint) ((value - adj->lower) / step) + 2;
|
||||
g_assert (i < num_icons);
|
||||
name = priv->icon_list[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user