1<?xml version='1.0' encoding='UTF-8'?>
2<page xmlns="http://projectmallard.org/1.0/"
3      xmlns:its="http://www.w3.org/2005/11/its"
4      xmlns:xi="http://www.w3.org/2001/XInclude"
5      type="guide" style="task"
6      id="menubutton.vala">
7  <info>
8  <title type="text">MenuButton (Vala)</title>
9    <link type="guide" xref="beginner.vala#buttons"/>
10    <revision version="0.1" date="2012-07-18" status="draft"/>
11
12    <credit type="author copyright">
13      <name>Tiffany Antopolski</name>
14      <email its:translate="no">tiffany.antopolski@gmail.com</email>
15      <years>2012</years>
16    </credit>
17
18    <desc>A widget that shows a menu when clicked on</desc>
19  </info>
20
21  <title>MenuButton</title>
22  <media type="image" mime="image/png" src="media/menubutton.png"/>
23  <p>The GtkMenuButton widget is used to display a menu when clicked on. This menu can be provided either as a GtkMenu, or an abstract GMenuModel.
24
25The GtkMenuButton widget can hold any valid child widget. That is, it can hold almost any other standard GtkWidget. The most commonly used child is the provided GtkArrow.</p>
26
27<note><p>You need to be running GNOME 3.6 for the MenuButton to work.</p></note>
28<code mime="text/x-csharp" style="numbered"><xi:include href="samples/menubutton.vala" parse="text"><xi:fallback/></xi:include></code>
29<p>
30  In this sample we used the following:
31</p>
32<list>
33  <item><p><link href="https://developer.gnome.org/gtk3/unstable/GtkMenuButton.html">MenuButton</link></p></item>
34</list>
35</page>
36