mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
b33c179aa9
commit
f2a6f6e80e
|
@ -103,9 +103,16 @@ class DepExplorer(Gtk.Window):
|
||||||
self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed)
|
self.pkg_treeview.get_selection().connect("changed", self.on_cursor_changed)
|
||||||
column = Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=COL_PKG_NAME)
|
column = Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=COL_PKG_NAME)
|
||||||
self.pkg_treeview.append_column(column)
|
self.pkg_treeview.append_column(column)
|
||||||
pane.add1(scrolled)
|
|
||||||
scrolled.add(self.pkg_treeview)
|
scrolled.add(self.pkg_treeview)
|
||||||
|
|
||||||
|
self.search_entry = Gtk.SearchEntry.new()
|
||||||
|
self.pkg_treeview.set_search_entry(self.search_entry)
|
||||||
|
|
||||||
|
left_panel = Gtk.VPaned()
|
||||||
|
left_panel.add(self.search_entry)
|
||||||
|
left_panel.add(scrolled)
|
||||||
|
pane.add1(left_panel)
|
||||||
|
|
||||||
box = Gtk.VBox(homogeneous=True, spacing=4)
|
box = Gtk.VBox(homogeneous=True, spacing=4)
|
||||||
|
|
||||||
# Task Depends
|
# Task Depends
|
||||||
|
@ -129,6 +136,7 @@ class DepExplorer(Gtk.Window):
|
||||||
pane.add2(box)
|
pane.add2(box)
|
||||||
|
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
self.search_entry.grab_focus()
|
||||||
|
|
||||||
def on_package_activated(self, treeview, path, column, data_col):
|
def on_package_activated(self, treeview, path, column, data_col):
|
||||||
model = treeview.get_model()
|
model = treeview.get_model()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user