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:
Jan Arne Petersen
2007-07-01 23:07:39 +00:00
committed by Jan Arne Petersen
parent bd2067643d
commit a49af56418
2 changed files with 6 additions and 1 deletions

View File

@@ -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):

View File

@@ -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];
}