[hamster-applet/2_28_no_bars] another attempt



commit a6b8b9df475fb5effafae3cb481fb2d6b54577d4
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Nov 10 21:35:47 2009 +0000

    another attempt

 hamster/charting.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index bba0df6..13f1fcb 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -500,10 +500,10 @@ class HorizontalBarChart(Chart):
                 bar_start = bar_size
 
                 bar_height = bar_width - (gap * 2)
-                
-                self.context.stroke()
-                self.draw_bar(self.graph_x, bar_y, bar_size, bar_height,
-                                                                     base_color)
+
+                self.context.set_source_rgb(0.5, 0.5, 0.5)
+                self.context.rectangle(self.graph_x, bar_y, bar_size, bar_height)
+                self.context.fill()
                 self.context.stroke()
 
             # values on bars



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]