check for 0 value on the denominator in the horizontal case just like we

Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>

	* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
	  denominator in the horizontal case just like we do in the vertical
	  case (why I didn't notice that there were two cases the first time
	  around is beyond me:).  Also fix indentation in the vertical case.
This commit is contained in:
George Lebl 2001-12-09 22:32:50 +00:00 committed by George Lebl
parent 17f81739f7
commit c66ca2dfb3
8 changed files with 54 additions and 4 deletions

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -1,3 +1,10 @@
Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
* gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
denominator in the horizontal case just like we do in the vertical
case (why I didn't notice that there were two cases the first time
around is beyond me:). Also fix indentation in the vertical case.
2001-12-09 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkevents-x11.c: Update xsettings name.

View File

@ -2019,8 +2019,8 @@ gtk_range_calc_layout (GtkRange *range,
y = top;
if (range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size != 0)
y += (bottom - top - height) * ((adjustment_value - range->adjustment->lower) /
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
y += (bottom - top - height) * ((adjustment_value - range->adjustment->lower) /
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
y = CLAMP (y, top, bottom);
@ -2154,8 +2154,9 @@ gtk_range_calc_layout (GtkRange *range,
x = left;
x += (right - left - width) * ((adjustment_value - range->adjustment->lower) /
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
if (range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size != 0)
x += (right - left - width) * ((adjustment_value - range->adjustment->lower) /
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
x = CLAMP (x, left, right);