diff options
author | flavio <fdanesse@gmail.com> | 2013-01-08 13:49:47 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2013-01-08 13:49:47 (GMT) |
commit | 9e65505ce3d6fa7f21b92cf8d2b2289a25fc8036 (patch) | |
tree | 9da7d7c94e366f7f2ef95d35f503b46a5044d463 /Moonwidgets.py | |
parent | 82243047368642558eb8041554ade501d24e11ee (diff) |
Port SugarMoon
Diffstat (limited to 'Moonwidgets.py')
-rw-r--r-- | Moonwidgets.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |