window: Support forward and back mouse buttons

The button value for forward is 9. See <GNOME/gtk#515>.

Closes #172
This commit is contained in:
Huan Nguyen 2023-05-21 16:17:48 +00:00 • committed by Sophie Herold
parent 0ddecefe01
commit 8804938859
2 changed files with 27 additions and 1 deletions

View file

@ -194,7 +194,18 @@
</object>
</child>
<child>
<object class="LpImageView" id="image_view"/>
<object class="LpImageView" id="image_view">
<child>
<object class="GtkGestureClick" id="forward_click_gesture">
<property name="button">9</property>
</object>
</child>
<child>
<object class="GtkGestureClick" id="backward_click_gesture">
<property name="button">8</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkDropTarget" id="drop_target">