code: Replace many uses of GtkExpressions

Closes #276, #100
This commit is contained in:
Sophie Herold 2023-12-02 22:07:33 +01:00
parent 50450ad359
commit c36e7f4eb6
6 changed files with 279 additions and 458 deletions

View file

@ -62,7 +62,6 @@
<property name="width-request">360</property>
<property name="height-request">360</property>
<property name="title" translatable="yes">Image Viewer</property>
<signal name="notify::fullscreened" handler="on_fullscreened" swapped="yes" />
<child>
<object class="AdwBreakpoint">
<condition>max-width: 590sp</condition>
@ -71,25 +70,6 @@
</child>
<property name="content">
<object class="AdwToolbarView" id="toolbar_view">
<binding name="top-bar-style">
<closure type="AdwToolbarStyle" function="top_bar_style">
<lookup name="fullscreened">LpWindow</lookup>
<lookup name="active">properties_button</lookup>
<lookup name="active">primary_menu</lookup>
<lookup name="image">
<lookup name="current-page">
image_view
</lookup>
</lookup>
</closure>
</binding>
<binding name="extend-content-to-top-edge">
<closure type="gboolean" function="extend_to_top">
<lookup name="fullscreened">LpWindow</lookup>
<lookup name="active">properties_button</lookup>
<lookup name="active">primary_menu</lookup>
</closure>
</binding>
<child type="top">
<object class="AdwHeaderBar" id="headerbar">
<property name="show-end-title-buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean" />
@ -228,13 +208,6 @@
<property name="flap">
<object class="LpPropertiesView" id="properties_view">
<property name="vexpand">true</property>
<binding name="image">
<lookup name="image">
<lookup name="current-page">
image_view
</lookup>
</lookup>
</binding>
</object>
</property>
</object>