hamster-applet r418 - trunk/hamster



Author: tbaugis
Date: Tue Aug 19 19:02:25 2008
New Revision: 418
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=418&view=rev

Log:
fixed deprecation warning (int expected got float)

Modified:
   trunk/hamster/charting.py

Modified: trunk/hamster/charting.py
==============================================================================
--- trunk/hamster/charting.py	(original)
+++ trunk/hamster/charting.py	Tue Aug 19 19:02:25 2008
@@ -544,7 +544,7 @@
         set_color(context, dark[8])
 
         # scale lines        
-        grid_stride = self.default_grid_stride if self.stretch_grid == False else (graph_width) / 3.0
+        grid_stride = self.default_grid_stride if self.stretch_grid == False else int(graph_width / 3.0)
         for x in range(graph_x + grid_stride, graph_x + graph_width - grid_stride, grid_stride):
             context.move_to(x, graph_y)
             context.line_to(x, graph_y + graph_height)



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