[hamster-applet/2_28_no_bars] turned off the animation



commit 5cf2cec1b9d11437ce04733b6393682396b1db0d
Author: Toms Bauģis <toms baugis gmail com>
Date:   Tue Nov 10 20:36:14 2009 +0000

    turned off the animation

 hamster/charting.py |    2 +-
 hamster/stats.py    |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index e436e66..9bfb59e 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -307,7 +307,7 @@ class BarChart(Chart):
         # bars and keys
         max_bar_size = self.graph_height
         #make sure bars don't hit the ceiling
-        if self.animate or self.before_drag_animate:
+        if self.animate:
             max_bar_size = self.graph_height - 10
 
 
diff --git a/hamster/stats.py b/hamster/stats.py
index 47d1987..7bd10d0 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -353,7 +353,8 @@ class StatsViewer(object):
                                              bar_base_color = (238,221,221),
                                              legend_width = x_offset,
                                              max_bar_width = 35,
-                                             show_stack_labels = True
+                                             show_stack_labels = True,
+                                             animate = False
                                              )
         self.get_widget("totals_by_category").add(self.category_chart)
         
@@ -363,7 +364,8 @@ class StatsViewer(object):
                                            show_scale = True,
                                            max_bar_width = 35,
                                            grid_stride = 4,
-                                           legend_width = 20)
+                                           legend_width = 20,
+                                             animate = False)
         self.get_widget("totals_by_day").add(self.day_chart)
 
 



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