From f8da21fb46f77d9dc389adb65a75c1791d6f687a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 11 Dec 2007 11:13:46 +0200 Subject: [PATCH] Add search navigation menu items to view menu --- debug-viewer/GstDebugViewer/Plugins/FindBar.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debug-viewer/GstDebugViewer/Plugins/FindBar.py b/debug-viewer/GstDebugViewer/Plugins/FindBar.py index b8671b857d..f02c7cc344 100644 --- a/debug-viewer/GstDebugViewer/Plugins/FindBar.py +++ b/debug-viewer/GstDebugViewer/Plugins/FindBar.py @@ -249,9 +249,11 @@ class FindBarFeature (FeatureBase): self.log_view = window.log_view self.merge_id = ui.new_merge_id () - ui.add_ui (self.merge_id, "/menubar/ViewMenu/ViewMenuAdditions", - "ViewFindBar", "show-find-bar", - gtk.UI_MANAGER_MENUITEM, False) + for name, action_name in [("ViewFindBar", "show-find-bar",), + ("ViewNextResult", "goto-next-search-result",), + ("ViewPrevResult", "goto-previous-search-result",)]: + ui.add_ui (self.merge_id, "/menubar/ViewMenu/ViewMenuAdditions", + name, action_name, gtk.UI_MANAGER_MENUITEM, False) box = window.widgets.vbox_view self.bar = FindBarWidget (self.action_group)