[pitivi] Remove an unneeded if-statement
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Remove an unneeded if-statement
- Date: Sat, 21 Jul 2012 19:59:07 +0000 (UTC)
commit 465693ce7a6cf79e3dac4b20fe1950c8023fb69e
Author: Paul Lange <palango gmx de>
Date: Tue Jun 19 16:15:55 2012 +0200
Remove an unneeded if-statement
pitivi/timeline/timeline.py | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 9a5c4b3..28b3465 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -378,12 +378,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
def _request_size(self):
alloc = self.get_allocation()
self.set_bounds(0, 0, alloc.width, alloc.height)
-
- playhead_height = self.height + SPACING
- if playhead_height >= 0:
- self._playhead.props.height = playhead_height
- else:
- self._playhead.props.height = 0
+ self._playhead.props.height = max(0, self.height + SPACING)
def _size_allocate_cb(self, widget, allocation):
self._request_size()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]