<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<!--ENTITY index-Objects-Grouped SYSTEM "objects_grouped.sgml"-->
<refentry id="GtkTearoffMenuItem">
<refmeta>
<refentrytitle role="top_of_page" id="GtkTearoffMenuItem.top_of_page">GtkTearoffMenuItem</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkTearoffMenuItem</refname>
<refpurpose>A menu item used to tear off and reattach its menu</refpurpose>
</refnamediv>

<refsynopsisdiv id="GtkTearoffMenuItem.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gtk/gtk.h&gt;

                    <link linkend="GtkTearoffMenuItem-struct">GtkTearoffMenuItem</link>;
<link linkend="GtkWidget">GtkWidget</link>*          <link linkend="gtk-tearoff-menu-item-new">gtk_tearoff_menu_item_new</link>           (void);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkTearoffMenuItem.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkBin">GtkBin</link>
                                 +----<link linkend="GtkItem">GtkItem</link>
                                       +----<link linkend="GtkMenuItem">GtkMenuItem</link>
                                             +----GtkTearoffMenuItem
</synopsis>
</refsect1>



<refsect1 id="GtkTearoffMenuItem.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkTearoffMenuItem implements
 <link linkend="GtkActivatable">GtkActivatable</link>,  <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>
</refsect1>





<refsect1 id="GtkTearoffMenuItem.description" role="desc">
<title role="desc.title">Description</title>
<para>
A <link linkend="GtkTearoffMenuItem"><type>GtkTearoffMenuItem</type></link> is a special <link linkend="GtkMenuItem"><type>GtkMenuItem</type></link> which is used to
tear off and reattach its menu.
</para>
<para>
When its menu is shown normally, the <link linkend="GtkTearoffMenuItem"><type>GtkTearoffMenuItem</type></link> is drawn as a
dotted line indicating that the menu can be torn off.  Activating it
causes its menu to be torn off and displayed in its own window
as a tearoff menu.
</para>
<para>
When its menu is shown as a tearoff menu, the <link linkend="GtkTearoffMenuItem"><type>GtkTearoffMenuItem</type></link> is drawn
as a dotted line which has a left pointing arrow graphic indicating that
the tearoff menu can be reattached.  Activating it will erase the tearoff
menu window.
</para>
</refsect1>

<refsect1 id="GtkTearoffMenuItem.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkTearoffMenuItem-struct" role="struct">
<title>GtkTearoffMenuItem</title>
<indexterm zone="GtkTearoffMenuItem-struct"><primary sortas="TearoffMenuItem">GtkTearoffMenuItem</primary></indexterm><programlisting>typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem;</programlisting>
<para>
The <link linkend="GtkTearoffMenuItem-struct"><type>GtkTearoffMenuItem</type></link> struct contains private data only, and
should be accessed using the functions below.
</para></refsect2>
<refsect2 id="gtk-tearoff-menu-item-new" role="function">
<title>gtk_tearoff_menu_item_new ()</title>
<indexterm zone="gtk-tearoff-menu-item-new"><primary sortas="tearoff_menu_item_new">gtk_tearoff_menu_item_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*          gtk_tearoff_menu_item_new           (void);</programlisting>
<para>
Creates a new <link linkend="GtkTearoffMenuItem"><type>GtkTearoffMenuItem</type></link>.
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>a new <link linkend="GtkTearoffMenuItem"><type>GtkTearoffMenuItem</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>



<refsect1 id="GtkTearoffMenuItem.see-also">
<title>See Also</title>
<para>
<variablelist>
<varlistentry>
<term><link linkend="GtkMenu"><type>GtkMenu</type></link></term>
<listitem><para>for further discussion of menus in GTK.</para></listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

</refentry>
