diff options
author | Tobias Olausson <tol@hms.se> | 2018-10-11 15:29:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-18 10:59:26 +0100 |
commit | f2a6f6e80e11511216e04234a27f51a04b46fc0b (patch) | |
tree | d6b3a765e60b31887a38db04e6838c8c213cca1f /bitbake/lib/bb | |
parent | b33c179aa978b6145c5c73c6ce545f9a68ffca28 (diff) | |
download | poky-f2a6f6e80e11511216e04234a27f51a04b46fc0b.tar.gz |
bitbake: taskexp: add focused search bar
Searching in the task explorer requires one to focus the task list. A
readily visible and focused search bar makes searching intuitive.
(Bitbake rev: 43f8a23d56995f552f98a666e86b6cc124e235a4)
Signed-off-by: Tobias Olausson <tol@hms.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/taskexp.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py index 0e8e9d4cf8..8305d70f41 100644 --- a/bitbake/lib/bb/ui/taskexp.py +++ b/bitbake/lib/bb/ui/taskexp.py | |||
@@ -103,9 +103,16 @@ class DepExplorer(Gtk.Window): | |||
103 | self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed) | 103 | self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed) |
104 | column = Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=COL_PKG_NAME) | 104 | column = Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=COL_PKG_NAME) |
105 | self.pkg_treeview.append_column(column) | 105 | self.pkg_treeview.append_column(column) |
106 | pane.add1(scrolled) | ||
107 | scrolled.add(self.pkg_treeview) | 106 | scrolled.add(self.pkg_treeview) |
108 | 107 | ||
108 | self.search_entry = Gtk.SearchEntry.new() | ||
109 | self.pkg_treeview.set_search_entry(self.search_entry) | ||
110 | |||
111 | left_panel = Gtk.VPaned() | ||
112 | left_panel.add(self.search_entry) | ||
113 | left_panel.add(scrolled) | ||
114 | pane.add1(left_panel) | ||
115 | |||
109 | box = Gtk.VBox(homogeneous=True, spacing=4) | 116 | box = Gtk.VBox(homogeneous=True, spacing=4) |
110 | 117 | ||
111 | # Task Depends | 118 | # Task Depends |
@@ -129,6 +136,7 @@ class DepExplorer(Gtk.Window): | |||
129 | pane.add2(box) | 136 | pane.add2(box) |
130 | 137 | ||
131 | self.show_all() | 138 | self.show_all() |
139 | self.search_entry.grab_focus() | ||
132 | 140 | ||
133 | def on_package_activated(self, treeview, path, column, data_col): | 141 | def on_package_activated(self, treeview, path, column, data_col): |
134 | model = treeview.get_model() | 142 | model = treeview.get_model() |