[gnome-builder] find-other-file: fix usage for IdeSearchButton
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] find-other-file: fix usage for IdeSearchButton
- Date: Tue, 30 Apr 2019 21:08:46 +0000 (UTC)
commit ddf4e265f15bd55c40e708f2b302d79cc866c52b
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 30 14:08:31 2019 -0700
find-other-file: fix usage for IdeSearchButton
src/plugins/find-other-file/find_other_file.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/find-other-file/find_other_file.py b/src/plugins/find-other-file/find_other_file.py
index 26a92bd5d..05c5ec43c 100644
--- a/src/plugins/find-other-file/find_other_file.py
+++ b/src/plugins/find-other-file/find_other_file.py
@@ -110,7 +110,11 @@ class FindOtherFile(GObject.Object, Ide.WorkspaceAddin):
def present_results(self, results, name):
headerbar = self.workspace.get_header_bar()
- search = Dazzle.gtk_widget_find_child_typed(headerbar, Ide.SearchEntry)
+
+ button = Dazzle.gtk_widget_find_child_typed(headerbar, Ide.SearchButton)
+ button.grab_focus()
+
+ search = button.get_entry()
search.set_text('')
search.set_model(results)
search.grab_focus()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]