feat: implement EchidnaSidebar.to_imp()
parent
40dad9e212
commit
b65788f300
|
@ -3,6 +3,7 @@
|
||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
pub mod imp;
|
pub mod imp;
|
||||||
|
use gtk::subclass::prelude::*;
|
||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct EchidnaSidebar(ObjectSubclass<imp::EchidnaSidebar>)
|
pub struct EchidnaSidebar(ObjectSubclass<imp::EchidnaSidebar>)
|
||||||
|
@ -14,4 +15,8 @@ impl EchidnaSidebar {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
glib::Object::new(&[]).expect("Failed to create 'EchidnaSidebar' component.")
|
glib::Object::new(&[]).expect("Failed to create 'EchidnaSidebar' component.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn to_imp(&self) -> &imp::EchidnaSidebar {
|
||||||
|
imp::EchidnaSidebar::from_instance(self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue