Commit 3a8f4f39 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Search: on type search

parent 83222372
......@@ -51,6 +51,14 @@ impl Window {
let search_str = search_text.as_str().to_string();
icons_view.filter(search_str);
});
self.search_entry.connect_stop_search(move |entry| {
entry.set_text("");
});
let search_entry = self.search_entry.clone();
self.widget.connect_key_press_event(move |_, event| {
search_entry.handle_event(event);
gtk::Inhibit(false)
});
self.widget.show_all();
}
}
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