app: Split rotate actions

To ensure simplicity of the process, replace the rotate actions
with new two actions, without modifying the existing rotate_image method.

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/201>
This commit is contained in:
Sabri Ünal 2023-04-24 02:11:43 +03:00 • committed by Marge Bot
parent 1f2be8353a
commit 32ee47d08f
5 changed files with 16 additions and 15 deletions

View file

@ -86,8 +86,7 @@
<object class="GtkButton">
<property name="icon-name">object-rotate-left-symbolic</property>
<property name="tooltip-text" translatable="yes">Rotate Left</property>
<property name="action-name">win.rotate</property>
<property name="action-target">-90.0</property>
<property name="action-name">win.rotate_ccw</property>
<style>
<class name="flat" />
</style>
@ -97,8 +96,7 @@
<object class="GtkButton">
<property name="icon-name">object-rotate-right-symbolic</property>
<property name="tooltip-text" translatable="yes">Rotate Right</property>
<property name="action-name">win.rotate</property>
<property name="action-target">90.0</property>
<property name="action-name">win.rotate_cw</property>
<style>
<class name="flat" />
</style>

View file

@ -99,8 +99,7 @@
<object class="GtkButton">
<property name="icon-name">object-rotate-left-symbolic</property>
<property name="tooltip-text" translatable="yes">Rotate Left</property>
<property name="action-name">win.rotate</property>
<property name="action-target">-90.0</property>
<property name="action-name">win.rotate_ccw</property>
<style>
<class name="flat" />
</style>
@ -110,8 +109,7 @@
<object class="GtkButton">
<property name="icon-name">object-rotate-right-symbolic</property>
<property name="tooltip-text" translatable="yes">Rotate Right</property>
<property name="action-name">win.rotate</property>
<property name="action-target">90.0</property>
<property name="action-name">win.rotate_cw</property>
<style>
<class name="flat" />
</style>