2020-09-16 02:17:34 +00:00
|
|
|
|
<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">1∶1</attribute>
|
|
|
|
|
<attribute name="action">zoom.reset</attribute>
|
|
|
|
|
</item>
|
2023-03-11 17:56:08 +00:00
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label">Rotate</attribute>
|
|
|
|
|
<attribute name="action">rotate</attribute>
|
|
|
|
|
<attribute name="target" type="i">90</attribute>
|
|
|
|
|
</item>
|
2020-09-16 02:17:34 +00:00
|
|
|
|
</menu>
|
|
|
|
|
<template class="Demo3Widget">
|
2023-06-18 16:59:51 +00:00
|
|
|
|
<accessibility>
|
|
|
|
|
<property name="label">Demo image</property>
|
|
|
|
|
</accessibility>
|
2020-09-16 02:17:34 +00:00
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkPopoverMenu" id="menu">
|
2023-06-18 16:59:51 +00:00
|
|
|
|
<accessibility>
|
|
|
|
|
<property name="label">Context menu</property>
|
|
|
|
|
</accessibility>
|
2020-09-16 02:17:34 +00:00
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
</interface>
|