testing-repository/Gtk4/gtk118_imageviewer/res/MyImage.ui

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-11-21 17:42:12 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<menu id="model">
<item>
<attribute name="label">Zoom Out</attribute>
<attribute name="action">zoom.out</attribute>
</item>
<item>
<attribute name="label">Zoom In</attribute>
<attribute name="action">zoom.in</attribute>
</item>
<item>
<attribute name="label">11</attribute>
<attribute name="action">zoom.reset</attribute>
</item>
</menu>
<template class="MyImage">
<child>
<object class="GtkPopoverMenu" id="menu">
<property name="has-arrow">0</property>
<property name="menu-model">model</property>
</object>
</child>
<child>
<object class="GtkGestureClick">
<property name="button">3</property>
<signal name="pressed" handler="pressed_cb"/>
</object>
</child>
2021-11-22 18:53:49 +08:00
<child>
<object class="GtkGestureDrag">
<property name="button">1</property>
<signal name="drag-begin" handler="drag_start"/>
<signal name="drag-update" handler="drag_update"/>
</object>
</child>
2021-11-21 17:42:12 +08:00
</template>
</interface>