Add hide before/after menu items to timeline context menu

This commit is contained in:
René Stadler 2007-12-07 11:25:30 +02:00 committed by Stefan Sauer
parent cec4541f3d
commit 47badacfde

View 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)