~dylanmccall/gnome-activity-journal/calview-scrubbing

« back to all changes in this revision

Viewing changes to src/timelinewidget/calview.py

  • Committer: Seif Lotfy
  • Date: 2010-01-09 14:41:53 UTC
  • Revision ID: seif@lotfy.com-20100109144153-9dwu8jkzoihjvt71
fixed months issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        month  = {1:"January", 2:"February", 3:"March", 4:"April",
189
189
                  5:"May", 6:"June", 7:"July", 8:"August", 9:"September",
190
190
                  10:"October", 11:"November", 12:"December",
191
 
                  }[date.day]
 
191
                  }[date.month]
 
192
        
192
193
        date = "%s, %d" % (month, date.year)
193
194
        xbearing, ybearing, width, oheight, xadvance, yadvance = context.text_extents(date)
194
195
        context.move_to(x + 10, height - self.ypad/3)