summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2007-12-11 11:16:44 +0200
committerRené Stadler <mail@renestadler.de>2007-12-11 11:16:44 +0200
commit322023e956c8a4a72a32072307346e0911316dfd (patch)
tree120f135f7a2e7d90425f24e03507785cc8218248 /GstDebugViewer
parente5660b9c5def502a4f5573f9904c3e8ce72c6816 (diff)
Fix search result navigation action sensitivity when showing the find bar
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/Plugins/FindBar.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/GstDebugViewer/Plugins/FindBar.py b/GstDebugViewer/Plugins/FindBar.py
index f02c7cc..960bbfd 100644
--- a/GstDebugViewer/Plugins/FindBar.py
+++ b/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):