print: Show filename and printer in title

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/240>
This commit is contained in:
Sophie Herold 2023-06-21 17:36:56 +02:00 • committed by Christopher Davis
parent 9bfa9f7294
commit 65af818567
3 changed files with 226 additions and 112 deletions

View file

@ -21,6 +21,9 @@
<object class="AdwHeaderBar">
<property name="show-start-title-buttons">false</property>
<property name="show-end-title-buttons">false</property>
<property name="title-widget">
<object class="AdwWindowTitle" id="title" />
</property>
<child type="start">
<object class="GtkButton">
<property name="label" translatable="yes">Back</property>
@ -78,30 +81,19 @@
</object>
</child>
<child>
<object class="AdwActionRow">
<object class="AdwComboRow" id="alignment">
<property name="title" translatable="yes">Alignment</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton">
<property name="icon-name">center-on-page-horizontal-symbolic</property>
<property name="action-name">print.center-horizontally</property>
<property name="tooltip-text" translatable="yes">Center image horizontally</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">center-on-page-vertical-symbolic</property>
<property name="action-name">print.center-vertically</property>
<property name="tooltip-text" translatable="yes">Center image vertically</property>
</object>
</child>
<property name="model">
<object class="GtkStringList">
<items>
<item>center</item>
<item>top</item>
<item>bottom</item>
<item>left</item>
<item>right</item>
</items>
</object>
</child>
</property>
</object>
</child>
</object>
@ -110,15 +102,13 @@
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Margins</property>
<child>
<object class="AdwSpinRow" id="margin_left">
<object class="AdwSpinRow" id="margin_horizontal">
<property name="title" translatable="yes">Horizontal</property>
<property name="digits">2</property>
</object>
</child>
<child>
<object class="AdwSpinRow" id="margin_top">
<object class="AdwSpinRow" id="margin_vertical">
<property name="title" translatable="yes">Vertical</property>
<property name="digits">2</property>
</object>
</child>
</object>
@ -129,7 +119,6 @@
<child>
<object class="AdwSpinRow" id="width">
<property name="title" translatable="yes">Width</property>
<property name="digits">2</property>
</object>
</child>
<child>