libcosmic/examples/launcher/application_object/mod.rs
2021-12-28 11:08:02 -05:00

13 lines
352 B
Rust

mod imp;
use crate::utils::BoxedSearchResult;
use gdk4::glib::Object;
glib::wrapper! {
pub struct ApplicationObject(ObjectSubclass<imp::ApplicationObject>);
}
impl ApplicationObject {
pub fn new(search_result: &BoxedSearchResult) -> Self {
Object::new(&[("data", search_result)]).expect("Failed to create Application Object")
}
}