window: Use AdwLeaflet for foldable window

Allows the window to shrink to a smaller width via AdwLeaflet.
This commit is contained in:
Christopher Davis
2022-08-12 03:00:08 +00:00
committed by Georges Basile Stavracas Neto
parent 2272b25dbc
commit 4cc727f48d
+9 -3
View File
@@ -98,14 +98,15 @@
<child> <child>
<object class="AdwToastOverlay" id="overlay"> <object class="AdwToastOverlay" id="overlay">
<child> <child>
<object class="GtkBox" id="box"> <object class="AdwLeaflet" id="leaflet">
<property name="homogeneous">False</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="hexpand">False</property> <property name="hexpand">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="AdwHeaderBar"> <object class="AdwHeaderBar">
<property name="show-end-title-buttons">False</property> <property name="show-end-title-buttons" bind-source="leaflet" bind-property="folded" bind-flags="sync-create"/>
<property name="title-widget"> <property name="title-widget">
<object class="GcalCalendarButton" id="calendars_button" /> <object class="GcalCalendarButton" id="calendars_button" />
</property> </property>
@@ -145,7 +146,12 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkSeparator"/> <object class="AdwLeafletPage">
<property name="navigatable">True</property>
<property name="child">
<object class="GtkSeparator"/>
</property>
</object>
</child> </child>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">