apparently need a \ after a binary operator (* and -). freaky

This commit is contained in:
Vincent Hanquez 2005-04-21 23:51:16 +00:00
parent 6c797723c5
commit a19ae26f01
1 changed files with 4 additions and 4 deletions

View File

@ -113,11 +113,11 @@ class CellRendererImage(gtk.GenericCellRenderer):
x_offset = 0 x_offset = 0
y_offset = 0 y_offset = 0
if cell_area and pixbuf_width > 0 and pixbuf_height > 0: if cell_area and pixbuf_width > 0 and pixbuf_height > 0:
x_offset = self.get_property('xalign') * x_offset = self.get_property('xalign') * \
(cell_area.width - calc_width - (cell_area.width - calc_width - \
self.get_property('xpad')) self.get_property('xpad'))
y_offset = self.get_property('yalign') * y_offset = self.get_property('yalign') * \
(cell_area.height - calc_height - (cell_area.height - calc_height - \
self.get_property('ypad')) self.get_property('ypad'))
return x_offset, y_offset, calc_width, calc_height return x_offset, y_offset, calc_width, calc_height