Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Moonwidgets.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2013-01-08 13:49:47 (GMT)
committer flavio <fdanesse@gmail.com>2013-01-08 13:49:47 (GMT)
commit9e65505ce3d6fa7f21b92cf8d2b2289a25fc8036 (patch)
tree9da7d7c94e366f7f2ef95d35f503b46a5044d463 /Moonwidgets.py
parent82243047368642558eb8041554ade501d24e11ee (diff)
Port SugarMoon
Diffstat (limited to 'Moonwidgets.py')
-rw-r--r--Moonwidgets.py6
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