15 lines
355 B
Rust
15 lines
355 B
Rust
use gtk4::glib;
|
|
|
|
use crate::utils::BoxedSearchResult;
|
|
|
|
mod imp;
|
|
|
|
glib::wrapper! {
|
|
pub struct SearchResultObject(ObjectSubclass<imp::SearchResultObject>);
|
|
}
|
|
|
|
impl SearchResultObject {
|
|
pub fn new(search_result: &BoxedSearchResult) -> Self {
|
|
glib::Object::new(&[("data", search_result)]).expect("Failed to create Application Object")
|
|
}
|
|
}
|