libcosmic/examples/launcher/application_object/mod.rs

14 lines
352 B
Rust
Raw Normal View History

2021-11-23 18:09:35 -05:00
mod imp;
2021-12-28 11:08:02 -05:00
use crate::utils::BoxedSearchResult;
2021-11-23 18:09:35 -05:00
use gdk4::glib::Object;
glib::wrapper! {
pub struct ApplicationObject(ObjectSubclass<imp::ApplicationObject>);
}
impl ApplicationObject {
2021-12-28 11:08:02 -05:00
pub fn new(search_result: &BoxedSearchResult) -> Self {
Object::new(&[("data", search_result)]).expect("Failed to create Application Object")
2021-11-23 18:09:35 -05:00
}
}