Add hide before/after menu items to timeline context menu
authorRené Stadler <mail@renestadler.de>
Fri, 7 Dec 2007 09:25:30 +0000 (11:25 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:42 +0000 (20:51 +0200)
debug-viewer/GstDebugViewer/Plugins/Timeline.py

index ba5485e..a83e2e3 100644 (file)
@@ -642,12 +642,12 @@ class TimelineFeature (FeatureBase):
 
         ui.add_ui (self.merge_id, "/", "TimelineContextMenu", None,
                    gtk.UI_MANAGER_POPUP, False)
-        # TODO: Makes sense to have these here too, but we need to add logic to
-        # the actions to associate the correct line with the activation.
-        ## ui.add_ui (self.merge_id, "/TimelineContextMenu", "TimelineHideLinesBefore",
-        ##            "hide-before-line", gtk.UI_MANAGER_MENUITEM, False)
-        ## ui.add_ui (self.merge_id, "/TimelineContextMenu", "TimelineHideLinesAfter",
-        ##            "hide-after-line", gtk.UI_MANAGER_MENUITEM, False)
+        # TODO: Make hide before/after operate on the partition that the mouse
+        # is pointed at instead of the currently selected line.
+        ui.add_ui (self.merge_id, "/TimelineContextMenu", "TimelineHideLinesBefore",
+                   "hide-before-line", gtk.UI_MANAGER_MENUITEM, False)
+        ui.add_ui (self.merge_id, "/TimelineContextMenu", "TimelineHideLinesAfter",
+                   "hide-after-line", gtk.UI_MANAGER_MENUITEM, False)
         ui.add_ui (self.merge_id, "/TimelineContextMenu", "TimelineShowHiddenLines",
                    "show-hidden-lines", gtk.UI_MANAGER_MENUITEM, False)