[pitivi] MainWindow: add dock/undock viewer action
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] MainWindow: add dock/undock viewer action
- Date: Fri, 26 Nov 2010 10:12:13 +0000 (UTC)
commit 03624939a07c510cdbb1d9dc97bd294d8786ddcf
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Thu Nov 25 15:23:40 2010 +0000
MainWindow: add dock/undock viewer action
pitivi/ui/mainwindow.py | 5 ++++-
pitivi/ui/mainwindow.xml | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 014ad93..7ee70ea 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -338,6 +338,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
self.actiongroup = gtk.ActionGroup("mainwindow")
self.actiongroup.add_actions(self.actions)
self.actiongroup.add_toggle_actions(self.toggleactions)
+ self.undock_action = gtk.Action("WindowizeViewer", _("Undock Viewer"),
+ _("Put the viewer in a serparate window"), None)
+ self.actiongroup.add_action(self.undock_action)
# deactivating non-functional actions
# FIXME : reactivate them
@@ -367,7 +370,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
"ShowHideMainToolbar", "ShowHideTimelineToolbar", "Library",
"Timeline", "Viewer", "FrameForward", "FrameBackward",
"SecondForward", "SecondBackward", "EdgeForward",
- "EdgeBackward", "Preferences"]:
+ "EdgeBackward", "Preferences", "WindowizeViewer"]:
action.set_sensitive(True)
elif action_name in ["NewProject", "SaveProjectAs", "OpenProject"]:
if instance.settings.fileSupportEnabled:
diff --git a/pitivi/ui/mainwindow.xml b/pitivi/ui/mainwindow.xml
index 7be62a2..762d3c8 100644
--- a/pitivi/ui/mainwindow.xml
+++ b/pitivi/ui/mainwindow.xml
@@ -21,6 +21,7 @@
<placeholder name="Timeline" />
<separator />
<menuitem action="FullScreen" />
+ <menuitem action="WindowizeViewer" />
</menu>
<menu action="Library">
<menuitem action="RenderProject" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]