Debian Codegraph @

demos/gtk-demo/imageview.ui

raw
1 <interface>
2 <menu id="model">
3 <item>
4 <attribute name="label">Zoom Out</attribute>
5 <attribute name="action">zoom.out</attribute>
6 </item>
7 <item>
8 <attribute name="label">Zoom In</attribute>
9 <attribute name="action">zoom.in</attribute>
10 </item>
11 <item>
12 <attribute name="label">1∶1</attribute>
13 <attribute name="action">zoom.reset</attribute>
14 </item>
15 <item>
16 <attribute name="label">Rotate</attribute>
17 <attribute name="action">rotate</attribute>
18 <attribute name="target" type="i">90</attribute>
19 </item>
20 </menu>
21 <template class="ImageView">
22 <signal name="query-tooltip" handler="query_tooltip"/>
23 <property name="has-tooltip">1</property>
24 <accessibility>
25 <property name="label">Image view</property>
26 </accessibility>
27 <child>
28 <object class="GtkPopoverMenu" id="menu">
29 <accessibility>
30 <property name="label">Context menu</property>
31 </accessibility>
32 <property name="has-arrow">0</property>
33 <property name="menu-model">model</property>
34 <property name="halign">start</property>
35 </object>
36 </child>
37 <child>
38 <object class="GtkGestureClick">
39 <property name="exclusive">true</property>
40 <property name="button">3</property>
41 <signal name="pressed" handler="pressed_cb"/>
42 </object>
43 </child>
44 <child>
45 <object class="GtkGestureClick">
46 <property name="touch-only">true</property>
47 <signal name="released" handler="pressed_cb"/>
48 </object>
49 </child>
50 <child>
51 <object class="GtkGestureZoom">
52 <signal name="begin" handler="scale_begin_cb"/>
53 <signal name="scale-changed" handler="scale_changed_cb"/>
54 </object>
55 </child>
56 <child>
57 <object class="GtkGestureRotate">
58 <signal name="begin" handler="rotate_begin_cb"/>
59 <signal name="angle-changed" handler="angle_changed_cb"/>
60 </object>
61 </child>
62 </template>
63 </interface>