From a49af564186aeca76d09ceca0058917c9a70531d Mon Sep 17 00:00:00 2001 From: Jan Arne Petersen Date: Sun, 1 Jul 2007 23:07:39 +0000 Subject: [PATCH] Add parentheses to fix the operator order in the icon selection. 2007-07-02 Jan Arne Petersen * gtk/gtkscalebutton.c: (gtk_scale_button_update_icon): Add parentheses to fix the operator order in the icon selection. svn path=/trunk/; revision=18331 --- ChangeLog | 5 +++++ gtk/gtkscalebutton.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7d495ceb10..c87b941105 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-02 Jan Arne Petersen + + * gtk/gtkscalebutton.c: (gtk_scale_button_update_icon): Add + parentheses to fix the operator order in the icon selection. + 2007-07-01 Johan Dahlin * gtk/gtk-builder-convert (GtkBuilderConverter): diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 78c912ac3d..4c2bae7af2 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -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]; }