summaryrefslogtreecommitdiff
path: root/examples/application9/gears-menu.ui
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-07-24 01:13:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-07-24 07:31:05 -0400
commit15453349eac598fa6c7a37809bd2c189c65b4841 (patch)
tree7a2c9893e5b6cc5cd0be64a113033d3264a36a13 /examples/application9/gears-menu.ui
parent84244d56fc42a2cd6541819334b4ef7c7aa4fb1f (diff)
downloadgtk+-15453349eac598fa6c7a37809bd2c189c65b4841.tar.gz
Getting started: Add an example for property actions
This example demonstrates property actions and object binding.
Diffstat (limited to 'examples/application9/gears-menu.ui')
-rw-r--r--examples/application9/gears-menu.ui16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/application9/gears-menu.ui b/examples/application9/gears-menu.ui
new file mode 100644
index 0000000000..fb0e9299b8
--- /dev/null
+++ b/examples/application9/gears-menu.ui
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <menu id="menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Words</attribute>
+ <attribute name="action">win.show-words</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Lines</attribute>
+ <attribute name="action">win.show-lines</attribute>
+ </item>
+ </section>
+ </menu>
+</interface>