summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GstDebugViewer/Plugins/FileProperties.py41
-rw-r--r--data/gst-debug-viewer.ui1
2 files changed, 42 insertions, 0 deletions
diff --git a/GstDebugViewer/Plugins/FileProperties.py b/GstDebugViewer/Plugins/FileProperties.py
new file mode 100644
index 0000000..ea88ed7
--- /dev/null
+++ b/GstDebugViewer/Plugins/FileProperties.py
@@ -0,0 +1,41 @@
+
+from GstDebugViewer.Plugins import *
+import logging
+import gtk
+
+class FilePropertiesSentinel (object):
+
+ pass
+
+class FilePropertiesDialog (gtk.Dialog):
+
+ pass
+
+class FilePropertiesFeature (FeatureBase):
+
+ def __init__ (self):
+
+ self.action_group = gtk.ActionGroup ("FilePropertiesActions")
+ self.action_group.add_actions ([("show-file-properties", gtk.STOCK_PROPERTIES,
+ _("_Properties"), "<Ctrl>P")])
+
+ def attach (self, window):
+
+ ui = window.ui_manager
+ ui.insert_action_group (self.action_group, 0)
+
+ self.merge_id = ui.new_merge_id ()
+ ui.add_ui (self.merge_id, "/menubar/FileMenu/FileMenuAdditions",
+ "FileProperties", "show-file-properties",
+ gtk.UI_MANAGER_MENUITEM, False)
+
+ handler = self.handle_action_activate
+ self.action_group.get_action ("show-file-properties").connect ("activate", handler)
+
+ def handle_action_activate (self, action):
+
+ pass
+
+class Plugin (PluginBase):
+
+ features = (FilePropertiesFeature,)
diff --git a/data/gst-debug-viewer.ui b/data/gst-debug-viewer.ui
index 9f6c55e..7d31e32 100644
--- a/data/gst-debug-viewer.ui
+++ b/data/gst-debug-viewer.ui
@@ -4,6 +4,7 @@
<menu name="FileMenu" action="FileMenuAction">
<menuitem name="FileNewWindow" action="new-window"/>
<menuitem name="FileOpen" action="open-file"/>
+ <separator/>
<placeholder name="FileMenuAdditions"/>
<separator/>
<menuitem name="FileCloseWindow" action="close-window"/>