[pitivi] Viewer: pass dock/undock action to viewer constructor
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Viewer: pass dock/undock action to viewer constructor
- Date: Fri, 26 Nov 2010 10:12:18 +0000 (UTC)
commit 9175c5f354829313b57ef552dbde70ce61823859
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Thu Nov 25 15:24:15 2010 +0000
Viewer: pass dock/undock action to viewer constructor
pitivi/ui/mainwindow.py | 2 +-
pitivi/ui/viewer.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 7ee70ea..3298eb8 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -463,7 +463,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.propertiestabs.show()
# Viewer
- self.viewer = PitiviViewer()
+ self.viewer = PitiviViewer(self.undock_action)
# drag and drop
self.viewer.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
[dnd.FILESOURCE_TUPLE, dnd.URI_TUPLE],
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 6efe118..6bd1865 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -58,7 +58,7 @@ class PitiviViewer(gtk.VBox, Loggable):
@type action: L{ViewAction}
"""
- def __init__(self, action=None, pipeline=None):
+ def __init__(self, undock_action, action=None, pipeline=None):
"""
@param action: Specific action to use instead of auto-created one
@type action: L{ViewAction}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]