From 14f91ccecf171bd5957bd27b04e2d325e22d4cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 11 Dec 2007 11:16:44 +0200 Subject: [PATCH] Fix search result navigation action sensitivity when showing the find bar --- debug-viewer/GstDebugViewer/Plugins/FindBar.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debug-viewer/GstDebugViewer/Plugins/FindBar.py b/debug-viewer/GstDebugViewer/Plugins/FindBar.py index f02c7cc344..960bbfd05f 100644 --- a/debug-viewer/GstDebugViewer/Plugins/FindBar.py +++ b/debug-viewer/GstDebugViewer/Plugins/FindBar.py @@ -266,10 +266,12 @@ class FindBarFeature (FeatureBase): action = self.action_group.get_action ("goto-previous-search-result") handler = self.handle_goto_previous_search_result_action_activate + action.props.sensitive = False action.connect ("activate", handler) action = self.action_group.get_action ("goto-next-search-result") handler = self.handle_goto_next_search_result_action_activate + action.props.sensitive = False action.connect ("activate", handler) self.bar.entry.connect ("changed", self.handle_entry_changed) @@ -294,6 +296,9 @@ class FindBarFeature (FeatureBase): pass self.bar.clear_status () self.bar.hide () + for action_name in ["goto-next-search-result", + "goto-previous-search-result"]: + self.action_group.get_action (action_name).props.sensitive = False def handle_goto_previous_search_result_action_activate (self, action):