From 9e65505ce3d6fa7f21b92cf8d2b2289a25fc8036 Mon Sep 17 00:00:00 2001 From: flavio Date: Tue, 08 Jan 2013 13:49:47 +0000 Subject: Port SugarMoon --- (limited to 'Moonwidgets.py') diff --git a/Moonwidgets.py b/Moonwidgets.py index f50a262..05e38cc 100644 --- a/Moonwidgets.py +++ b/Moonwidgets.py @@ -621,9 +621,9 @@ class MatrizMoonCalendar(Gtk.EventBox): def repaint(self, widget= None, event= None): if not self.fixes: return - x,y,w,h= self.get_allocation() - anchoboton = w/len(self.fixes[0]) - altoboton = h/len(self.fixes) + rect = self.get_allocation() + anchoboton = rect.width/len(self.fixes[0]) + altoboton = rect.height/len(self.fixes) tamanioboton = min( [anchoboton,altoboton] ) if self.tamanioboton != tamanioboton: self.tamanioboton = tamanioboton -- cgit v0.9.1