feat: add a GtkStackPage in EchidnaSidebar
parent
b65788f300
commit
4edeeaf080
|
@ -8,7 +8,10 @@ use gtk::CompositeTemplate;
|
||||||
|
|
||||||
#[derive(Default, CompositeTemplate)]
|
#[derive(Default, CompositeTemplate)]
|
||||||
#[template(file = "./sidebar.ui")]
|
#[template(file = "./sidebar.ui")]
|
||||||
pub struct EchidnaSidebar {}
|
pub struct EchidnaSidebar {
|
||||||
|
#[template_child]
|
||||||
|
pub explorer: TemplateChild<gtk::StackPage>,
|
||||||
|
}
|
||||||
|
|
||||||
#[glib::object_subclass]
|
#[glib::object_subclass]
|
||||||
impl ObjectSubclass for EchidnaSidebar {
|
impl ObjectSubclass for EchidnaSidebar {
|
||||||
|
|
|
@ -17,18 +17,14 @@
|
||||||
<property name="hhomogeneous">1</property>
|
<property name="hhomogeneous">1</property>
|
||||||
<property name="width-request">170</property>
|
<property name="width-request">170</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkStackPage">
|
<object class="GtkStackPage" id="explorer">
|
||||||
<!-- Explorer Tab -->
|
<!-- Explorer Tab -->
|
||||||
<property name="name">explorer</property>
|
<property name="name">explorer</property>
|
||||||
<property name="title">Explorer</property>
|
<property name="title">Explorer</property>
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="GtkBox">
|
<object class="GtkBox">
|
||||||
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
|
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
|
||||||
<child>
|
|
||||||
<object class="GtkLabel">
|
|
||||||
<property name="label">Explorer</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue