feat: implement EchidnaSidebar.to_imp()

merge-requests/12/head
Nefo Fortressia 2021-12-18 11:32:00 +07:00
parent 40dad9e212
commit b65788f300
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
1 changed files with 5 additions and 0 deletions

View File

@ -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<imp::EchidnaSidebar>)
@ -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)
}
}