From b54780e45e717474a8c693d8404f1568cb380b27 Mon Sep 17 00:00:00 2001 From: Nefomemes Date: Sun, 31 Oct 2021 16:56:54 +0700 Subject: [PATCH] feat: implement EchidnaWindow::to_imp() --- src/components/window/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/window/mod.rs b/src/components/window/mod.rs index 45975ca..330a308 100644 --- a/src/components/window/mod.rs +++ b/src/components/window/mod.rs @@ -8,6 +8,7 @@ mod imp; pub mod menubar; use glib::object::IsA; +use gtk::subclass::prelude::*; glib::wrapper! { pub struct EchidnaWindow(ObjectSubclass) @@ -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) + } }