feat: add a GtkStackPage in EchidnaSidebar

merge-requests/12/head
Nefo Fortressia 2021-12-18 11:40:21 +07:00
parent b65788f300
commit 4edeeaf080
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
2 changed files with 6 additions and 7 deletions

View File

@ -8,7 +8,10 @@ use gtk::CompositeTemplate;
#[derive(Default, CompositeTemplate)]
#[template(file = "./sidebar.ui")]
pub struct EchidnaSidebar {}
pub struct EchidnaSidebar {
#[template_child]
pub explorer: TemplateChild<gtk::StackPage>,
}
#[glib::object_subclass]
impl ObjectSubclass for EchidnaSidebar {

View File

@ -17,18 +17,14 @@
<property name="hhomogeneous">1</property>
<property name="width-request">170</property>
<child>
<object class="GtkStackPage">
<object class="GtkStackPage" id="explorer">
<!-- Explorer Tab -->
<property name="name">explorer</property>
<property name="title">Explorer</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
<child>
<object class="GtkLabel">
<property name="label">Explorer</property>
</object>
</child>
</object>
</property>