murrine r134 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r134 - in trunk: . src
- Date: Fri, 23 Jan 2009 13:39:00 +0000 (UTC)
Author: acimitan
Date: Fri Jan 23 13:39:00 2009
New Revision: 134
URL: http://svn.gnome.org/viewvc/murrine?rev=134&view=rev
Log:
2009-01-23 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_style.c (murrine_style_draw_box):
Fixed a bug in the scale_trough not fully filled in some cases.
Thanks lucazade for pointing this out.
Modified:
trunk/ChangeLog
trunk/src/murrine_style.c
Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c (original)
+++ trunk/src/murrine_style.c Fri Jan 23 13:39:00 2009
@@ -911,9 +911,13 @@
slider.inverted = gtk_range_get_inverted (GTK_RANGE (widget));
slider.horizontal = (GTK_RANGE (widget)->orientation == GTK_ORIENTATION_HORIZONTAL);
- slider.fill_size = ((slider.horizontal ? width : height)-slider_length) *
- (1/((adjustment->upper-adjustment->lower)/(adjustment->value-adjustment->lower)))
- +slider_length/2;
+ if ((adjustment->upper-adjustment->page_size-adjustment->lower) != 0)
+ slider.fill_size = ((slider.horizontal ? width : height)-slider_length)*
+ ((adjustment->value-adjustment->lower)/
+ (adjustment->upper-adjustment->page_size-adjustment->lower))+
+ slider_length/2;
+ else
+ slider.fill_size = 0;
if (slider.horizontal)
slider.inverted = slider.inverted != (murrine_get_direction (widget) == GTK_TEXT_DIR_RTL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]