feat: implement EchidnaWindow::to_imp()
parent
1296157638
commit
b54780e45e
|
@ -8,6 +8,7 @@ mod imp;
|
||||||
pub mod menubar;
|
pub mod menubar;
|
||||||
|
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
|
use gtk::subclass::prelude::*;
|
||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct EchidnaWindow(ObjectSubclass<imp::EchidnaWindow>)
|
pub struct EchidnaWindow(ObjectSubclass<imp::EchidnaWindow>)
|
||||||
|
@ -24,4 +25,8 @@ impl EchidnaWindow {
|
||||||
Err(e) => panic!("Error in making EchidnaApplication {}", e),
|
Err(e) => panic!("Error in making EchidnaApplication {}", e),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn to_imp(&self) -> &imp::EchidnaWindow {
|
||||||
|
imp::EchidnaWindow::from_instance(self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue