pitivi r1252 - trunk/pitivi/ui
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1252 - trunk/pitivi/ui
- Date: Fri, 26 Sep 2008 17:10:19 +0000 (UTC)
Author: edwardrv
Date: Fri Sep 26 17:10:19 2008
New Revision: 1252
URL: http://svn.gnome.org/viewvc/pitivi?rev=1252&view=rev
Log:
Don't use python 2.4-specific linguo
Modified:
trunk/pitivi/ui/util.py
Modified: trunk/pitivi/ui/util.py
==============================================================================
--- trunk/pitivi/ui/util.py (original)
+++ trunk/pitivi/ui/util.py Fri Sep 26 17:10:19 2008
@@ -464,13 +464,19 @@
def compute(c, p):
return (c.get_property('width') + p[0])
widths = (compute(c, p) for c, p in self.children.items())
- self.width = max(widths) if len(self.children) else float(0)
+ if len(self.children):
+ self.width = max(widths)
+ else:
+ self.width = float(0)
def update_height(self, obj, prop):
def compute(c, p):
return (c.get_property('height') + p[1])
heights = (compute(c, p) for c, p in self.children.items())
- self.height = max(heights) if len(self.children) else float(0)
+ if len(self.children):
+ self.height = max(heights)
+ else:
+ self.height = float(0)
def set_child_pos(self, child, pos_):
set_pos(child, point_sum(pos(self), pos_))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]