[pitivi/ges] Fixed bug when opening the transformation box
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges] Fixed bug when opening the transformation box
- Date: Tue, 10 Apr 2012 20:32:15 +0000 (UTC)
commit 4708a4fc1939d537a0b29d75df3db67f5aa193fb
Author: Daniel Thul <daniel thul googlemail com>
Date: Tue Apr 10 19:25:45 2012 +0200
Fixed bug when opening the transformation box
pitivi/viewer.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 29b75d6..d419379 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -893,6 +893,8 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
self.area = None
self.zoom = 1.0
self.sink = None
+ self.pixbuf = None
+ self.pipeline = None
self.transformation_properties = None
for state in range(gtk.STATE_INSENSITIVE + 1):
self.modify_bg(state, self.style.black)
@@ -1045,7 +1047,7 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
if self.box.area.width != self.pixbuf.get_width():
cr.restore()
- if self.pipeline.get_state() == gst.STATE_PAUSED:
+ if self.pipeline and self.pipeline.get_state()[1] == gst.STATE_PAUSED:
self.box.draw(cr)
cr.pop_group_to_source()
cr.paint()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]