[hamster-applet] have minutes in sup and small



commit 03060d10595c9027eb73ec97cd2663c220943f15
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Jun 21 18:15:38 2009 +0100

    have minutes in sup and small

 hamster/charting.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hamster/charting.py b/hamster/charting.py
index d183a68..e07dae5 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -699,7 +699,7 @@ class HorizontalDayChart(Chart):
             
             minutes = i % (24 * 60)
 
-            self.layout.set_text(dt.time(minutes / 60, minutes % 60).strftime("%H:%M"))
+            self.layout.set_markup(dt.time(minutes / 60, minutes % 60).strftime("%H<small><sup>%M</sup></small>"))
             label_w, label_h = self.layout.get_pixel_size()
 
             context.move_to(self.graph_x + x - label_w / 2,



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