From b65788f30093bed01a08acf15c6c857fcf9801c3 Mon Sep 17 00:00:00 2001 From: Nefo Fortressia Date: Sat, 18 Dec 2021 11:32:00 +0700 Subject: [PATCH] feat: implement EchidnaSidebar.to_imp() --- src/components/sidebar/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) 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) + } }