Commit 6204d96c authored by guinux's avatar guinux

add --search option in manager to start with a search

parent 9b8e88df
......@@ -86,6 +86,14 @@ namespace Pamac {
manager_window.refresh_packages_list ();
started = true;
}
if (cmd.get_arguments ().length == 3) {
if (cmd.get_arguments ()[1] == "--search") {
manager_window.display_package_queue.clear ();
manager_window.search_button.active = true;
var entry = manager_window.search_comboboxtext.get_child () as Gtk.Entry;
entry.set_text (cmd.get_arguments ()[2]);
}
}
if (!pamac_run) {
manager_window.present ();
while (Gtk.events_pending ()) {
......
......@@ -79,7 +79,7 @@ namespace Pamac {
[GtkChild]
Gtk.SearchBar searchbar;
[GtkChild]
Gtk.ComboBoxText search_comboboxtext;
public Gtk.ComboBoxText search_comboboxtext;
[GtkChild]
Gtk.Entry search_entry;
[GtkChild]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment