diff --git a/src/components/sidebar/mod.rs b/src/components/sidebar/mod.rs index 7aa464a..b9c623e 100644 --- a/src/components/sidebar/mod.rs +++ b/src/components/sidebar/mod.rs @@ -3,6 +3,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ pub mod imp; +use gtk::subclass::prelude::*; glib::wrapper! { pub struct EchidnaSidebar(ObjectSubclass) @@ -14,4 +15,8 @@ impl EchidnaSidebar { pub fn new() -> Self { glib::Object::new(&[]).expect("Failed to create 'EchidnaSidebar' component.") } + + pub fn to_imp(&self) -> &imp::EchidnaSidebar { + imp::EchidnaSidebar::from_instance(self) + } }