rename search result object and row
This commit is contained in:
parent
f95fa068f3
commit
f0542071d4
7 changed files with 35 additions and 35 deletions
13
examples/launcher/search_result_object/mod.rs
Normal file
13
examples/launcher/search_result_object/mod.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
mod imp;
|
||||
use crate::utils::BoxedSearchResult;
|
||||
use gdk4::glib::Object;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct SearchResultObject(ObjectSubclass<imp::SearchResultObject>);
|
||||
}
|
||||
|
||||
impl SearchResultObject {
|
||||
pub fn new(search_result: &BoxedSearchResult) -> Self {
|
||||
Object::new(&[("data", search_result)]).expect("Failed to create Application Object")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue