<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>

<refentry id="NautilusMenuItem">
<refmeta>
<refentrytitle role="top_of_page" id="NautilusMenuItem.top_of_page">NautilusMenuItem</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBNAUTILUS-EXTENSION Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>NautilusMenuItem</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="NautilusMenuItem.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>
<anchor id="NautilusMenu"/>
<synopsis>
#define             <link linkend="NAUTILUS-TYPE-MENU-ITEM:CAPS">NAUTILUS_TYPE_MENU_ITEM</link>
#define             <link linkend="NAUTILUS-MENU-ITEM:CAPS">NAUTILUS_MENU_ITEM</link>                  (obj)
#define             <link linkend="NAUTILUS-MENU-ITEM-CLASS:CAPS">NAUTILUS_MENU_ITEM_CLASS</link>            (klass)
#define             <link linkend="NAUTILUS-MENU-IS-ITEM:CAPS">NAUTILUS_MENU_IS_ITEM</link>               (obj)
#define             <link linkend="NAUTILUS-MENU-IS-ITEM-CLASS:CAPS">NAUTILUS_MENU_IS_ITEM_CLASS</link>         (klass)
#define             <link linkend="NAUTILUS-MENU-ITEM-GET-CLASS:CAPS">NAUTILUS_MENU_ITEM_GET_CLASS</link>        (obj)
                    <link linkend="NautilusMenuPrivate">NautilusMenuPrivate</link>;
                    <link linkend="NautilusMenuItemDetails">NautilusMenuItemDetails</link>;
                    <link linkend="NautilusMenu-struct">NautilusMenu</link>;
                    <link linkend="NautilusMenuItem-struct">NautilusMenuItem</link>;
<link linkend="NautilusMenu">NautilusMenu</link>*       <link linkend="nautilus-menu-new">nautilus_menu_new</link>                   (void);
<link linkend="void">void</link>                <link linkend="nautilus-menu-append-item">nautilus_menu_append_item</link>           (<link linkend="NautilusMenu">NautilusMenu</link> *this,
                                                         <link linkend="NautilusMenuItem">NautilusMenuItem</link> *item);
<link linkend="GList">GList</link>*              <link linkend="nautilus-menu-get-items">nautilus_menu_get_items</link>             (<link linkend="NautilusMenu">NautilusMenu</link> *this);
<link linkend="void">void</link>                <link linkend="nautilus-menu-item-list-free">nautilus_menu_item_list_free</link>        (<link linkend="GList">GList</link> *item_list);
<link linkend="GType">GType</link>               <link linkend="nautilus-menu-item-get-type">nautilus_menu_item_get_type</link>         (void);
<link linkend="NautilusMenuItem">NautilusMenuItem</link>*   <link linkend="nautilus-menu-item-new">nautilus_menu_item_new</link>              (const <link linkend="char">char</link> *name,
                                                         const <link linkend="char">char</link> *label,
                                                         const <link linkend="char">char</link> *tip,
                                                         const <link linkend="char">char</link> *icon);
<link linkend="void">void</link>                <link linkend="nautilus-menu-item-activate">nautilus_menu_item_activate</link>         (<link linkend="NautilusMenuItem">NautilusMenuItem</link> *item);
<link linkend="void">void</link>                <link linkend="nautilus-menu-item-set-submenu">nautilus_menu_item_set_submenu</link>      (<link linkend="NautilusMenuItem">NautilusMenuItem</link> *item,
                                                         <link linkend="NautilusMenu">NautilusMenu</link> *menu);
</synopsis>
</refsynopsisdiv>

<refsect1 id="NautilusMenuItem.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----NautilusMenu
</synopsis>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----NautilusMenuItem
</synopsis>

</refsect1>





<refsect1 id="NautilusMenuItem.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="NautilusMenuItem--accelerator">accelerator</link>&quot;              <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="NautilusMenuItem--icon">icon</link>&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="NautilusMenuItem--label">label</link>&quot;                    <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="NautilusMenuItem--menu">menu</link>&quot;                     <link linkend="NautilusMenu">NautilusMenu</link>*         : Read / Write
  &quot;<link linkend="NautilusMenuItem--name">name</link>&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write / Construct Only
  &quot;<link linkend="NautilusMenuItem--priority">priority</link>&quot;                 <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="NautilusMenuItem--sensitive">sensitive</link>&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="NautilusMenuItem--tip">tip</link>&quot;                      <link linkend="gchar">gchar</link>*                : Read / Write
</synopsis>
</refsect1>

<refsect1 id="NautilusMenuItem.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>
  &quot;<link linkend="NautilusMenuItem-activate">activate</link>&quot;                                       : Run Last
</synopsis>
</refsect1>


<refsect1 id="NautilusMenuItem.description" role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="NautilusMenuItem.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="NAUTILUS-TYPE-MENU-ITEM:CAPS" role="macro">
<title>NAUTILUS_TYPE_MENU_ITEM</title>
<indexterm zone="NAUTILUS-TYPE-MENU-ITEM:CAPS"><primary>NAUTILUS_TYPE_MENU_ITEM</primary></indexterm><programlisting>#define NAUTILUS_TYPE_MENU_ITEM            (nautilus_menu_item_get_type())
</programlisting>
<para>

</para></refsect2>
<refsect2 id="NAUTILUS-MENU-ITEM:CAPS" role="macro">
<title>NAUTILUS_MENU_ITEM()</title>
<indexterm zone="NAUTILUS-MENU-ITEM:CAPS"><primary>NAUTILUS_MENU_ITEM</primary></indexterm><programlisting>#define NAUTILUS_MENU_ITEM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItem))
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>obj</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="NAUTILUS-MENU-ITEM-CLASS:CAPS" role="macro">
<title>NAUTILUS_MENU_ITEM_CLASS()</title>
<indexterm zone="NAUTILUS-MENU-ITEM-CLASS:CAPS"><primary>NAUTILUS_MENU_ITEM_CLASS</primary></indexterm><programlisting>#define NAUTILUS_MENU_ITEM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItemClass))
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>klass</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="NAUTILUS-MENU-IS-ITEM:CAPS" role="macro">
<title>NAUTILUS_MENU_IS_ITEM()</title>
<indexterm zone="NAUTILUS-MENU-IS-ITEM:CAPS"><primary>NAUTILUS_MENU_IS_ITEM</primary></indexterm><programlisting>#define NAUTILUS_MENU_IS_ITEM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_MENU_ITEM))
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>obj</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="NAUTILUS-MENU-IS-ITEM-CLASS:CAPS" role="macro">
<title>NAUTILUS_MENU_IS_ITEM_CLASS()</title>
<indexterm zone="NAUTILUS-MENU-IS-ITEM-CLASS:CAPS"><primary>NAUTILUS_MENU_IS_ITEM_CLASS</primary></indexterm><programlisting>#define NAUTILUS_MENU_IS_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NAUTILUS_TYPE_MENU_ITEM))
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>klass</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="NAUTILUS-MENU-ITEM-GET-CLASS:CAPS" role="macro">
<title>NAUTILUS_MENU_ITEM_GET_CLASS()</title>
<indexterm zone="NAUTILUS-MENU-ITEM-GET-CLASS:CAPS"><primary>NAUTILUS_MENU_ITEM_GET_CLASS</primary></indexterm><programlisting>#define NAUTILUS_MENU_ITEM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), NAUTILUS_TYPE_MENU_ITEM, NautilusMenuItemClass))
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>obj</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="NautilusMenuPrivate" role="struct">
<title>NautilusMenuPrivate</title>
<indexterm zone="NautilusMenuPrivate"><primary>NautilusMenuPrivate</primary></indexterm><programlisting>typedef struct _NautilusMenuPrivate NautilusMenuPrivate;</programlisting>
<para>

</para></refsect2>
<refsect2 id="NautilusMenuItemDetails" role="struct">
<title>NautilusMenuItemDetails</title>
<indexterm zone="NautilusMenuItemDetails"><primary>NautilusMenuItemDetails</primary></indexterm><programlisting>typedef struct _NautilusMenuItemDetails NautilusMenuItemDetails;</programlisting>
<para>

</para></refsect2>
<refsect2 id="NautilusMenu-struct" role="struct">
<title>NautilusMenu</title>
<indexterm zone="NautilusMenu-struct"><primary>NautilusMenu</primary></indexterm><programlisting>typedef struct _NautilusMenu NautilusMenu;</programlisting>
<para>

</para></refsect2>
<refsect2 id="NautilusMenuItem-struct" role="struct">
<title>NautilusMenuItem</title>
<indexterm zone="NautilusMenuItem-struct"><primary>NautilusMenuItem</primary></indexterm><programlisting>typedef struct _NautilusMenuItem NautilusMenuItem;</programlisting>
<para>

</para></refsect2>
<refsect2 id="nautilus-menu-new" role="function">
<title>nautilus_menu_new ()</title>
<indexterm zone="nautilus-menu-new"><primary>nautilus_menu_new</primary></indexterm><programlisting><link linkend="NautilusMenu">NautilusMenu</link>*       nautilus_menu_new                   (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-append-item" role="function">
<title>nautilus_menu_append_item ()</title>
<indexterm zone="nautilus-menu-append-item"><primary>nautilus_menu_append_item</primary></indexterm><programlisting><link linkend="void">void</link>                nautilus_menu_append_item           (<link linkend="NautilusMenu">NautilusMenu</link> *this,
                                                         <link linkend="NautilusMenuItem">NautilusMenuItem</link> *item);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>this</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>item</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-get-items" role="function">
<title>nautilus_menu_get_items ()</title>
<indexterm zone="nautilus-menu-get-items"><primary>nautilus_menu_get_items</primary></indexterm><programlisting><link linkend="GList">GList</link>*              nautilus_menu_get_items             (<link linkend="NautilusMenu">NautilusMenu</link> *this);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>this</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-item-list-free" role="function">
<title>nautilus_menu_item_list_free ()</title>
<indexterm zone="nautilus-menu-item-list-free"><primary>nautilus_menu_item_list_free</primary></indexterm><programlisting><link linkend="void">void</link>                nautilus_menu_item_list_free        (<link linkend="GList">GList</link> *item_list);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>item_list</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-item-get-type" role="function">
<title>nautilus_menu_item_get_type ()</title>
<indexterm zone="nautilus-menu-item-get-type"><primary>nautilus_menu_item_get_type</primary></indexterm><programlisting><link linkend="GType">GType</link>               nautilus_menu_item_get_type         (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-item-new" role="function">
<title>nautilus_menu_item_new ()</title>
<indexterm zone="nautilus-menu-item-new"><primary>nautilus_menu_item_new</primary></indexterm><programlisting><link linkend="NautilusMenuItem">NautilusMenuItem</link>*   nautilus_menu_item_new              (const <link linkend="char">char</link> *name,
                                                         const <link linkend="char">char</link> *label,
                                                         const <link linkend="char">char</link> *tip,
                                                         const <link linkend="char">char</link> *icon);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>name</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>label</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>tip</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>icon</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-item-activate" role="function">
<title>nautilus_menu_item_activate ()</title>
<indexterm zone="nautilus-menu-item-activate"><primary>nautilus_menu_item_activate</primary></indexterm><programlisting><link linkend="void">void</link>                nautilus_menu_item_activate         (<link linkend="NautilusMenuItem">NautilusMenuItem</link> *item);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>item</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="nautilus-menu-item-set-submenu" role="function">
<title>nautilus_menu_item_set_submenu ()</title>
<indexterm zone="nautilus-menu-item-set-submenu"><primary>nautilus_menu_item_set_submenu</primary></indexterm><programlisting><link linkend="void">void</link>                nautilus_menu_item_set_submenu      (<link linkend="NautilusMenuItem">NautilusMenuItem</link> *item,
                                                         <link linkend="NautilusMenu">NautilusMenu</link> *menu);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>item</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>menu</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="NautilusMenuItem.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="NautilusMenuItem--accelerator"><title>The <literal>&quot;accelerator&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--accelerator"><primary>NautilusMenuItem:accelerator</primary></indexterm><programlisting>  &quot;accelerator&quot;              <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>Accelerator to use for this item. May be null.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="NautilusMenuItem--icon"><title>The <literal>&quot;icon&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--icon"><primary>NautilusMenuItem:icon</primary></indexterm><programlisting>  &quot;icon&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>Name of the icon to display in the menu item.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="NautilusMenuItem--label"><title>The <literal>&quot;label&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--label"><primary>NautilusMenuItem:label</primary></indexterm><programlisting>  &quot;label&quot;                    <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>Label to display to the user.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="NautilusMenuItem--menu"><title>The <literal>&quot;menu&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--menu"><primary>NautilusMenuItem:menu</primary></indexterm><programlisting>  &quot;menu&quot;                     <link linkend="NautilusMenu">NautilusMenu</link>*         : Read / Write</programlisting>
<para>The menu belonging to this item. May be null.</para></refsect2>
<refsect2 id="NautilusMenuItem--name"><title>The <literal>&quot;name&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--name"><primary>NautilusMenuItem:name</primary></indexterm><programlisting>  &quot;name&quot;                     <link linkend="gchar">gchar</link>*                : Read / Write / Construct Only</programlisting>
<para>Name of the item.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="NautilusMenuItem--priority"><title>The <literal>&quot;priority&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--priority"><primary>NautilusMenuItem:priority</primary></indexterm><programlisting>  &quot;priority&quot;                 <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Show priority text in toolbars.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="NautilusMenuItem--sensitive"><title>The <literal>&quot;sensitive&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--sensitive"><primary>NautilusMenuItem:sensitive</primary></indexterm><programlisting>  &quot;sensitive&quot;                <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>Whether the menu item is sensitive.</para><para>Default value: TRUE</para>
</refsect2>
<refsect2 id="NautilusMenuItem--tip"><title>The <literal>&quot;tip&quot;</literal> property</title>
<indexterm zone="NautilusMenuItem--tip"><primary>NautilusMenuItem:tip</primary></indexterm><programlisting>  &quot;tip&quot;                      <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>Tooltip for the menu item.</para><para>Default value: NULL</para>
</refsect2>

</refsect1>

<refsect1 id="NautilusMenuItem.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="NautilusMenuItem-activate"><title>The <literal>&quot;activate&quot;</literal> signal</title>
<indexterm zone="NautilusMenuItem-activate"><primary>NautilusMenuItem::activate</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="NautilusMenuItem">NautilusMenuItem</link> *nautilusmenuitem,
                                                        <link linkend="gpointer">gpointer</link>          user_data)             : Run Last</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>nautilusmenuitem</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.

</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
