edit_window: Add "Done" menu replacing "Save" button

This commit is contained in:
Sophie Herold 2025-01-14 00:12:53 +01:00
parent 1801683bfe
commit 507b7b24f9
2 changed files with 73 additions and 12 deletions

View file

@ -16,9 +16,72 @@
</object>
</child>
<child type="end">
<object class="GtkButton" id="save">
<property name="label" translatable="true">_Save</property>
<object class="GtkMenuButton" id="save">
<property name="label" translatable="true">_Done</property>
<property name="use-underline">true</property>
<property name="popover">
<object class="GtkPopover">
<style>
<class name="menu" />
</style>
<property name="child">
<object class="GtkListBox">
<property name="selection-mode">none</property>
<child>
<object class="GtkListBoxRow">
<property name="action-name">edit.save-copy</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="label">Save as Copy…</property>
<property name="xalign">0</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">Keep original and create a new file</property>
<property name="xalign">0</property>
<style>
<class name="dim-label" />
<class name="caption" />
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="label">Replace Original…</property>
<property name="xalign">0</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">Original image will be moved to the trash</property>
<property name="xalign">0</property>
<style>
<class name="dim-label" />
<class name="caption" />
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
<style>
<class name="suggested-action" />
</style>