feat: implement EchidnaWindow::to_imp()

merge-requests/8/head
Nefo Fortressia 2021-10-31 16:56:54 +07:00
parent 1296157638
commit b54780e45e
1 changed files with 5 additions and 0 deletions

View File

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