<TypeSignatureLanguage="C#"Value="public class UIManager : GLib.Object, IWrapper, IDisposable"Maintainer="auto"/>
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyPublicKey>[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4]</AssemblyPublicKey>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyCulture>neutral</AssemblyCulture>
<Attributes/>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <linklocation="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<summary>Constructs menus and toolbars from an XML description</summary>
<remarks>
<para>
A <seecref="T:Gtk.UIManager"/> constructs a user interface (menus and toolbars) from one or more UI definitions, which reference actions from one or more action groups.
<para>
TODO: all the xml stuff
</para><para>
UI Merging</para><para>
The most remarkable feature of GtkUIManager is that it can overlay a set of menuitems and toolitems over another one, and demerge them later.
</para><para>
Merging is done based on the names of the XML elements. Each element is identified by a path which consists of the names of its anchestors, separated by slashes. For example, the menuitem named "Left" in the example above has the path /ui/menubar/JustifyMenu/Left and the toolitem with the same name has path /ui/toolbar1/JustifyToolItems/Left.
</para><para>
Accelerators
</para><para>
Every action has an accelerator path. Accelerators are installed together with menuitem proxies, but they can also be explicitly added with <accelerator> elements in the UI definition. This makes it possible to have accelerators for actions even if they have no visible proxies.
<para>
Smart Separators
</para></para><para>
The separators created by GtkUIManager are "smart", i.e. they do not show up in the UI unless they end up between two visible menu or tool items. Separators which are located at the very beginning or end of the menu or toolbar containing them, or multiple separators next to each other, are hidden. This is a useful feature, since the merging of UI elements from multiple sources can make it hard or impossible to determine in advance whether a separator will end up in such an unfortunate position.
</para><para>
Empty Menus
</para><para>
Submenus pose similar problems to separators inconnection with merging. It is impossible to know in advance whether they will end up empty after merging. GtkUIManager offers two ways to treat empty submenus:
<listtype="bullet">
<item>
<term>make them disappear by hiding the menu item they're attached to</term>
</item>
<item>
<term>add an insensitive "Empty" item</term>
</item>
</list>
The behaviour is chosen based on the "is_important" property of the action to which the submenu is associated.
<returns>a <seecref="T:Gtk.Widget"/> found by following the path, or <seelangword="null"/> if no widget was found.</returns>
<remarks>The path consists of the names specified in the XML description of the UI. separated by '/'. Elements which do not have a name or action attribute in the XML (e.g. <popup>) can be addressed by their XML element name (e.g. "popup"). The root element ("/ui") can be omitted in the path.
<blocksubset="none"type="note">
<para>
The widget found by following a path that ends in a <menu> element is the menuitem to which the menu is attached, not the menu itself.
<summary>Parses a string containing a UI definition and merges it with the current contents.</summary>
<paramname="buffer">a <seecref="T:System.String"/> to parse</param>
<returns>a <seecref="T:System.UInt32"/>. The merge id for the merged UI. The merge id can be used to unmerge the UI with <seecref="M:Gtk.UIManager.RemoveUi()"/>. If an error occurred, the return value is 0.</returns>
<remarks>An enclosing <ui> element is added if it is missing.</remarks>
<paramname="name">a <seecref="T:System.String"/>, the name for the added UI element</param>
<paramname="action">a <seecref="T:System.String"/>, the name of the action to be proxied, or <seelangword="null"/> to add a separator</param>
<paramname="type">a <seecref="T:System.Int32"/>. the type of UI element to add.</param>
<paramname="top">a <seecref="T:System.Boolean"/>. If <seelangword="true"/>, the UI element is added before its siblings, otherwise it is added after its siblings.</param>
<remarks>If type is <seecref="F:Gtk.UIManager.Auto"/>, Gtk inserts a menuitem, toolitem or separator if such an element can be inserted at the place determined by path. Otherwise type must indicate an element that can be inserted at the place determined by path.</remarks>
<summary>Parses a file containing a UI definition and merges it with the current contents.</summary>
<paramname="filename">a <seecref="T:System.String"/>, the name of the file to parse</param>
<returns>a <seecref="T:System.UInt32"/>. The merge id for the merged UI. The merge id can be used to unmerge the UI with <seecref="M:Gtk.UIManager.RemoveUi()"/>. If an error occurred, the return value is 0.</returns>
<summary>Sets the "add_tearoffs" property, which controls whether menus generated by this <seecref="T:Gtk.UIManager"/> will have tearoff menu items.</summary>
<returns>a <seecref="T:System.Boolean"/>, whether tearoff menu items are added</returns>
<remarks>Note that this only affects regular menus. Generated popup menus never have tearoff menu items.</remarks>
<summary>The ConnectProxy signal is emitted after connecting a proxy to an action in the group.</summary>
<remarks>This is intended for simple customizations for which a custom action class would be too clumsy, e.g. showing tooltips for menuitems in the statusbar.</remarks>