|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkToolItem</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="prev" href="GtkToolbar.html" title="GtkToolbar">
<link rel="next" href="GtkSeparatorToolItem.html" title="GtkSeparatorToolItem">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkToolbar.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MenusAndCombos.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkSeparatorToolItem.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3326728" class="shortcut">Top</a>
 | 
<a href="#id3327661" class="shortcut">Description</a>
 | 
<a href="#id3327354" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3327432" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3327455" class="shortcut">Properties</a>
 | 
<a href="#id3327523" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkToolItem"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3326728"></a><span class="refentrytitle">GtkToolItem</span>
</h2>
<p>GtkToolItem — The base class of widgets that can be added to GtkToolbar</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkToolItem.html#GtkToolItem-struct">GtkToolItem</a>;
<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a>* <a href="GtkToolItem.html#gtk-tool-item-new">gtk_tool_item_new</a> (void);
void <a href="GtkToolItem.html#gtk-tool-item-set-homogeneous">gtk_tool_item_set_homogeneous</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> homogeneous);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-homogeneous">gtk_tool_item_get_homogeneous</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
void <a href="GtkToolItem.html#gtk-tool-item-set-expand">gtk_tool_item_set_expand</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-expand">gtk_tool_item_get_expand</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
void <a href="GtkToolItem.html#gtk-tool-item-set-tooltip">gtk_tool_item_set_tooltip</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_text,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_private);
void <a href="GtkToolItem.html#gtk-tool-item-set-use-drag-window">gtk_tool_item_set_use_drag_window</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_drag_window);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-use-drag-window">gtk_tool_item_get_use_drag_window</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);
void <a href="GtkToolItem.html#gtk-tool-item-set-visible-horizontal">gtk_tool_item_set_visible_horizontal</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible_horizontal);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-visible-horizontal">gtk_tool_item_get_visible_horizontal</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);
void <a href="GtkToolItem.html#gtk-tool-item-set-visible-vertical">gtk_tool_item_set_visible_vertical</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible_vertical);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-visible-vertical">gtk_tool_item_get_visible_vertical</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);
void <a href="GtkToolItem.html#gtk-tool-item-set-is-important">gtk_tool_item_set_is_important</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> is_important);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkToolItem.html#gtk-tool-item-get-is-important">gtk_tool_item_get_is_important</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> <a href="GtkToolItem.html#gtk-tool-item-get-icon-size">gtk_tool_item_get_icon_size</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="gtk-Standard-Enumerations.html#GtkOrientation">GtkOrientation</a> <a href="GtkToolItem.html#gtk-tool-item-get-orientation">gtk_tool_item_get_orientation</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="gtk-Standard-Enumerations.html#GtkToolbarStyle">GtkToolbarStyle</a> <a href="GtkToolItem.html#gtk-tool-item-get-toolbar-style">gtk_tool_item_get_toolbar_style</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="gtk-Standard-Enumerations.html#GtkReliefStyle">GtkReliefStyle</a> <a href="GtkToolItem.html#gtk-tool-item-get-relief-style">gtk_tool_item_get_relief_style</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkToolItem.html#gtk-tool-item-retrieve-proxy-menu-item">gtk_tool_item_retrieve_proxy_menu_item</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkToolItem.html#gtk-tool-item-get-proxy-menu-item">gtk_tool_item_get_proxy_menu_item</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *menu_item_id);
void <a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item">gtk_tool_item_set_proxy_menu_item</a>
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *menu_item_id,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *menu_item);
void <a href="GtkToolItem.html#gtk-tool-item-rebuild-menu">gtk_tool_item_rebuild_menu</a> (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3327354"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----<a href="GtkBin.html" title="GtkBin">GtkBin</a>
+----GtkToolItem
+----<a href="GtkToolButton.html" title="GtkToolButton">GtkToolButton</a>
+----<a href="GtkSeparatorToolItem.html" title="GtkSeparatorToolItem">GtkSeparatorToolItem</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3327432"></a><h2>Implemented Interfaces</h2>
<p>
GtkToolItem implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3327455"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkToolItem.html#GtkToolItem--is-important">is-important</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkToolItem.html#GtkToolItem--visible-horizontal">visible-horizontal</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkToolItem.html#GtkToolItem--visible-vertical">visible-vertical</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3327523"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkToolItem.html#GtkToolItem-create-menu-proxy">create-menu-proxy</a>"
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkToolItem.html#GtkToolItem-set-tooltip">set-tooltip</a>"
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_text,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_private,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkToolItem.html#GtkToolItem-toolbar-reconfigured">toolbar-reconfigured</a>"
void user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3327661"></a><h2>Description</h2>
<p>
<a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>s are widgets that can appear on a toolbar. To
create a toolbar item that contain something else than a button, use
<a href="GtkToolItem.html#gtk-tool-item-new"><code class="function">gtk_tool_item_new()</code></a>. Use <a href="GtkContainer.html#gtk-container-add"><code class="function">gtk_container_add()</code></a> to add a child
widget to the tool item.
</p>
<p>
For toolbar items that contain buttons, see the <a href="GtkToolButton.html" title="GtkToolButton"><span class="type">GtkToolButton</span></a>,
<a href="GtkToggleToolButton.html" title="GtkToggleToolButton"><span class="type">GtkToggleToolButton</span></a> and <a href="GtkRadioToolButton.html" title="GtkRadioToolButton"><span class="type">GtkRadioToolButton</span></a> classes.
</p>
See the <a href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a> class for a description of the toolbar widget.
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3327749"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3327760"></a><h3>
<a name="GtkToolItem-struct"></a>GtkToolItem</h3>
<a class="indexterm" name="id3327772"></a><pre class="programlisting">typedef struct _GtkToolItem GtkToolItem;</pre>
<p>
The GtkToolItem struct contains only private data. It should only be
accessed through the functions described below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3327789"></a><h3>
<a name="gtk-tool-item-new"></a>gtk_tool_item_new ()</h3>
<a class="indexterm" name="id3327805"></a><pre class="programlisting"><a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a>* gtk_tool_item_new (void);</pre>
<p>
Creates a new <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3327863"></a><h3>
<a name="gtk-tool-item-set-homogeneous"></a>gtk_tool_item_set_homogeneous ()</h3>
<a class="indexterm" name="id3327879"></a><pre class="programlisting">void gtk_tool_item_set_homogeneous (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> homogeneous);</pre>
<p>
Sets whether <em class="parameter"><code>tool_item</code></em> is to be allocated the same size as other
homogeneous items. The effect is that all homogeneous items will have
the same width as the widest of the items.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></td>
<td> whether <em class="parameter"><code>tool_item</code></em> is the same size as other homogeneous items
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3327979"></a><h3>
<a name="gtk-tool-item-get-homogeneous"></a>gtk_tool_item_get_homogeneous ()</h3>
<a class="indexterm" name="id3327995"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_homogeneous (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns whether <em class="parameter"><code>tool_item</code></em> is the same size as other homogeneous
items. See <a href="GtkToolItem.html#gtk-tool-item-set-homogeneous"><code class="function">gtk_tool_item_set_homogeneous()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the item is the same size as other homogeneous
item.s
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328097"></a><h3>
<a name="gtk-tool-item-set-expand"></a>gtk_tool_item_set_expand ()</h3>
<a class="indexterm" name="id3328112"></a><pre class="programlisting">void gtk_tool_item_set_expand (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> expand);</pre>
<p>
Sets whether <em class="parameter"><code>tool_item</code></em> is allocated extra space when there
is more room on the toolbar then needed for the items. The
effect is that the item gets bigger when the toolbar gets bigger
and smaller when the toolbar gets smaller.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>expand</code></em> :</span></td>
<td> Whether <em class="parameter"><code>tool_item</code></em> is allocated extra space
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328211"></a><h3>
<a name="gtk-tool-item-get-expand"></a>gtk_tool_item_get_expand ()</h3>
<a class="indexterm" name="id3328227"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_expand (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns whether <em class="parameter"><code>tool_item</code></em> is allocated extra space.
See <a href="GtkToolItem.html#gtk-tool-item-set-expand"><code class="function">gtk_tool_item_set_expand()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>tool_item</code></em> is allocated extra space.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328333"></a><h3>
<a name="gtk-tool-item-set-tooltip"></a>gtk_tool_item_set_tooltip ()</h3>
<a class="indexterm" name="id3328350"></a><pre class="programlisting">void gtk_tool_item_set_tooltip (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_text,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_private);</pre>
<p>
Sets the <a href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a> object to be used for <em class="parameter"><code>tool_item</code></em>, the
text to be displayed as tooltip on the item and the private text
to be used. See <a href="GtkTooltips.html#gtk-tooltips-set-tip"><code class="function">gtk_tooltips_set_tip()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tooltips</code></em> :</span></td>
<td> The <a href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a> object to be used
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tip_text</code></em> :</span></td>
<td> text to be used as tooltip text for <em class="parameter"><code>tool_item</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tip_private</code></em> :</span></td>
<td> text to be used as private tooltip text
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328518"></a><h3>
<a name="gtk-tool-item-set-use-drag-window"></a>gtk_tool_item_set_use_drag_window ()</h3>
<a class="indexterm" name="id3328535"></a><pre class="programlisting">void gtk_tool_item_set_use_drag_window
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_drag_window);</pre>
<p>
Sets whether <em class="parameter"><code>toolitem</code></em> has a drag window. When <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> the
toolitem can be used as a drag source through <a href="gtk-Drag-and-Drop.html#gtk-drag-source-set"><code class="function">gtk_drag_source_set()</code></a>.
When <em class="parameter"><code>toolitem</code></em> has a drag window it will intercept all events,
even those that would otherwise be sent to a child of <em class="parameter"><code>toolitem</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>use_drag_window</code></em> :</span></td>
<td> Whether <em class="parameter"><code>toolitem</code></em> has a drag window.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328666"></a><h3>
<a name="gtk-tool-item-get-use-drag-window"></a>gtk_tool_item_get_use_drag_window ()</h3>
<a class="indexterm" name="id3328683"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_use_drag_window
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);</pre>
<p>
Returns whether <em class="parameter"><code>toolitem</code></em> has a drag window. See
<a href="GtkToolItem.html#gtk-tool-item-set-use-drag-window"><code class="function">gtk_tool_item_set_use_drag_window()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>toolitem</code></em> uses a drag window.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328789"></a><h3>
<a name="gtk-tool-item-set-visible-horizontal"></a>gtk_tool_item_set_visible_horizontal ()</h3>
<a class="indexterm" name="id3328805"></a><pre class="programlisting">void gtk_tool_item_set_visible_horizontal
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible_horizontal);</pre>
<p>
Sets whether <em class="parameter"><code>toolitem</code></em> is visible when the toolbar is docked horizontally.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>visible_horizontal</code></em> :</span></td>
<td> Whether <em class="parameter"><code>toolitem</code></em> is visible when in horizontal mode
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3328903"></a><h3>
<a name="gtk-tool-item-get-visible-horizontal"></a>gtk_tool_item_get_visible_horizontal ()</h3>
<a class="indexterm" name="id3328920"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_visible_horizontal
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);</pre>
<p>
Returns whether the <em class="parameter"><code>toolitem</code></em> is visible on toolbars that are
docked horizontally.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>toolitem</code></em> is visible on toolbars that are
docked horizontally.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329017"></a><h3>
<a name="gtk-tool-item-set-visible-vertical"></a>gtk_tool_item_set_visible_vertical ()</h3>
<a class="indexterm" name="id3329033"></a><pre class="programlisting">void gtk_tool_item_set_visible_vertical
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible_vertical);</pre>
<p>
Sets whether <em class="parameter"><code>toolitem</code></em> is visible when the toolbar is docked
vertically. Some tool items, such as text entries, are too wide to be
useful on a vertically docked toolbar. If <em class="parameter"><code>visible_vertical</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>
<em class="parameter"><code>toolitem</code></em> will not appear on toolbars that are docked vertically.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>visible_vertical</code></em> :</span></td>
<td> whether <em class="parameter"><code>toolitem</code></em> is visible when the toolbar
is in vertical mode
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329155"></a><h3>
<a name="gtk-tool-item-get-visible-vertical"></a>gtk_tool_item_get_visible_vertical ()</h3>
<a class="indexterm" name="id3329171"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_visible_vertical
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem);</pre>
<p>
Returns whether <em class="parameter"><code>toolitem</code></em> is visible when the toolbar is docked vertically.
See <a href="GtkToolItem.html#gtk-tool-item-set-visible-vertical"><code class="function">gtk_tool_item_set_visible_vertical()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> Whether <em class="parameter"><code>toolitem</code></em> is visible when the toolbar is docked vertically
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329269"></a><h3>
<a name="gtk-tool-item-set-is-important"></a>gtk_tool_item_set_is_important ()</h3>
<a class="indexterm" name="id3329285"></a><pre class="programlisting">void gtk_tool_item_set_is_important (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> is_important);</pre>
<p>
Sets whether <em class="parameter"><code>tool_item</code></em> should be considered important. The <a href="GtkToolButton.html" title="GtkToolButton"><span class="type">GtkToolButton</span></a>
class uses this property to determine whether to show or hide its label
when the toolbar style is <a href="gtk-Standard-Enumerations.html#GTK-TOOLBAR-BOTH-HORIZ:CAPS"><code class="literal">GTK_TOOLBAR_BOTH_HORIZ</code></a>. The result is that
only tool buttons with the "is_important" property set have labels, an
effect known as "priority text"</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>is_important</code></em> :</span></td>
<td> whether the tool item should be considered important
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329400"></a><h3>
<a name="gtk-tool-item-get-is-important"></a>gtk_tool_item_get_is_important ()</h3>
<a class="indexterm" name="id3329416"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_tool_item_get_is_important (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns whether <em class="parameter"><code>tool_item</code></em> is considered important. See
<a href="GtkToolItem.html#gtk-tool-item-set-is-important"><code class="function">gtk_tool_item_set_is_important()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>tool_item</code></em> is considered important.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329521"></a><h3>
<a name="gtk-tool-item-get-icon-size"></a>gtk_tool_item_get_icon_size ()</h3>
<a class="indexterm" name="id3329537"></a><pre class="programlisting"><a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> gtk_tool_item_get_icon_size (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns the icon size used for <em class="parameter"><code>tool_item</code></em>. Custom subclasses of
<a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> should call this function to find out what size icons
they should use.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a href="gtk-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> indicating the icon size used for <em class="parameter"><code>tool_item</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329638"></a><h3>
<a name="gtk-tool-item-get-orientation"></a>gtk_tool_item_get_orientation ()</h3>
<a class="indexterm" name="id3329654"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkOrientation">GtkOrientation</a> gtk_tool_item_get_orientation
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns the orientation used for <em class="parameter"><code>tool_item</code></em>. Custom subclasses of
<a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> should call this function to find out what size icons
they should use.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a href="gtk-Standard-Enumerations.html#GtkOrientation"><span class="type">GtkOrientation</span></a> indicating the orientation
used for <em class="parameter"><code>tool_item</code></em>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329758"></a><h3>
<a name="gtk-tool-item-get-toolbar-style"></a>gtk_tool_item_get_toolbar_style ()</h3>
<a class="indexterm" name="id3329774"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkToolbarStyle">GtkToolbarStyle</a> gtk_tool_item_get_toolbar_style
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns the toolbar style used for <em class="parameter"><code>tool_item</code></em>. Custom subclasses of
<a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> should call this function in the handler of the
GtkToolItem::toolbar_reconfigured signal to find out in what style
the toolbar is displayed and change themselves accordingly
</p>
<p>
Possibilities are:
</p>
<div class="itemizedlist"><ul type="disc">
<li> GTK_TOOLBAR_BOTH, meaning the tool item should show
both an icon and a label, stacked vertically </li>
<li> GTK_TOOLBAR_ICONS, meaning the toolbar shows
only icons </li>
<li> GTK_TOOLBAR_TEXT, meaning the tool item should only
show text</li>
<li> GTK_TOOLBAR_BOTH_HORIZ, meaning the tool item should show
both an icon and a label, arranged horizontally (however, note the
<span class="type">GtkToolButton::has_text_horizontally</span> that makes tool buttons not
show labels when the toolbar style is GTK_TOOLBAR_BOTH_HORIZ.
</li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> A <a href="gtk-Standard-Enumerations.html#GtkToolbarStyle"><span class="type">GtkToolbarStyle</span></a> indicating the toolbar style used
for <em class="parameter"><code>tool_item</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3329917"></a><h3>
<a name="gtk-tool-item-get-relief-style"></a>gtk_tool_item_get_relief_style ()</h3>
<a class="indexterm" name="id3329933"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkReliefStyle">GtkReliefStyle</a> gtk_tool_item_get_relief_style
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns the relief style of <em class="parameter"><code>tool_item</code></em>. See <code class="function">gtk_button_set_relief_style()</code>.
Custom subclasses of <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> should call this function in the handler
of the <a href="GtkToolItem.html#GtkToolItem-toolbar-reconfigured"><span class="type">GtkToolItem::toolbar_reconfigured</span></a> signal to find out the
relief style of buttons.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a href="gtk-Standard-Enumerations.html#GtkReliefStyle"><span class="type">GtkReliefStyle</span></a> indicating the relief style used
for <em class="parameter"><code>tool_item</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330058"></a><h3>
<a name="gtk-tool-item-retrieve-proxy-menu-item"></a>gtk_tool_item_retrieve_proxy_menu_item ()</h3>
<a class="indexterm" name="id3330074"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_tool_item_retrieve_proxy_menu_item
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Returns the <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> that was last set by
<a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item"><code class="function">gtk_tool_item_set_proxy_menu_item()</code></a>, ie. the <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>
that is going to appear in the overflow menu.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> that is going to appear in the
overflow menu for <em class="parameter"><code>tool_item</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330191"></a><h3>
<a name="gtk-tool-item-get-proxy-menu-item"></a>gtk_tool_item_get_proxy_menu_item ()</h3>
<a class="indexterm" name="id3330208"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_tool_item_get_proxy_menu_item
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *menu_item_id);</pre>
<p>
If <em class="parameter"><code>menu_item_id</code></em> matches the string passed to
<a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item"><code class="function">gtk_tool_item_set_proxy_menu_item()</code></a> return the corresponding <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>.
</p>
<p>
Custom subclasses of <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> should use this function to update
their menu item when the <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> changes. That the
<em class="parameter"><code>menu_item_id</code></em>s must match ensures that a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> will not
inadvertently change a menu item that they did not create.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>menu_item_id</code></em> :</span></td>
<td> a string used to identify the menu item
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> passed to
<a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item"><code class="function">gtk_tool_item_set_proxy_menu_item()</code></a>, if the <em class="parameter"><code>menu_item_id</code></em>s match.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330393"></a><h3>
<a name="gtk-tool-item-set-proxy-menu-item"></a>gtk_tool_item_set_proxy_menu_item ()</h3>
<a class="indexterm" name="id3330410"></a><pre class="programlisting">void gtk_tool_item_set_proxy_menu_item
(<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *menu_item_id,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *menu_item);</pre>
<p>
Sets the <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> used in the toolbar overflow menu. The
<em class="parameter"><code>menu_item_id</code></em> is used to identify the caller of this function and
should also be used with <a href="GtkToolItem.html#gtk-tool-item-get-proxy-menu-item"><code class="function">gtk_tool_item_get_proxy_menu_item()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <span class="type">GtkToolItem:</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>menu_item_id</code></em> :</span></td>
<td> a string used to identify <em class="parameter"><code>menu_item</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>menu_item</code></em> :</span></td>
<td> a <a href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to be used in the overflow menu
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330557"></a><h3>
<a name="gtk-tool-item-rebuild-menu"></a>gtk_tool_item_rebuild_menu ()</h3>
<a class="indexterm" name="id3330573"></a><pre class="programlisting">void gtk_tool_item_rebuild_menu (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre>
<p>
Calling this function signals to the toolbar that the
overflow menu item for <em class="parameter"><code>tool_item</code></em> has changed. If the
overflow menu is visible when this function it called,
the menu will be rebuilt.
</p>
<p>
The function must be called when the tool item
changes what it will do in response to the "create_menu_proxy"
signal.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>tool_item</code></em> :</span></td>
<td> a <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since 2.6
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3330650"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3330660"></a><h3>
<a name="GtkToolItem--is-important"></a>The "<code class="literal">is-important</code>" property</h3>
<a class="indexterm" name="id3330677"></a><pre class="programlisting"> "is-important" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the toolbar item is considered important. When TRUE, toolbar buttons show text in GTK_TOOLBAR_BOTH_HORIZ mode.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330705"></a><h3>
<a name="GtkToolItem--visible-horizontal"></a>The "<code class="literal">visible-horizontal</code>" property</h3>
<a class="indexterm" name="id3330722"></a><pre class="programlisting"> "visible-horizontal" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the toolbar item is visible when the toolbar is in a horizontal orientation.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3330750"></a><h3>
<a name="GtkToolItem--visible-vertical"></a>The "<code class="literal">visible-vertical</code>" property</h3>
<a class="indexterm" name="id3330767"></a><pre class="programlisting"> "visible-vertical" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the toolbar item is visible when the toolbar is in a vertical orientation.</p>
<p>Default value: TRUE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3330796"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3330806"></a><h3>
<a name="GtkToolItem-create-menu-proxy"></a>The "create-menu-proxy" signal</h3>
<a class="indexterm" name="id3330818"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
This signal is emitted when the toolbar needs information from <em class="parameter"><code>tool_item</code></em>
about whether the item should appear in the toolbar overflow menu. In
response the tool item should either
</p>
<div class="itemizedlist"><ul type="disc">
<li> call <a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item"><code class="function">gtk_tool_item_set_proxy_menu_item()</code></a> with a <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
pointer and return <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to indicate that the item should not appear
in the overflow menu
</li>
<li> call <a href="GtkToolItem.html#gtk-tool-item-set-proxy-menu-item"><code class="function">gtk_tool_item_set_proxy_menu_item()</code></a> with a new menu
item and return <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, or
</li>
<li> return <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to indicate that the signal was not
handled by the item. This means that
the item will not appear in the overflow menu unless a later handler
installs a menu item.
</li>
</ul></div>
<p>
</p>
<p>
The toolbar may cache the result of this signal. When the tool item changes
how it will respond to this signal it must call <a href="GtkToolItem.html#gtk-tool-item-rebuild-menu"><code class="function">gtk_tool_item_rebuild_menu()</code></a>
to invalidate the cache and ensure that the toolbar rebuilds its overflow
menu.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> the object the signal was emitted on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the signal was handled, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if not
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3331029"></a><h3>
<a name="GtkToolItem-set-tooltip"></a>The "set-tooltip" signal</h3>
<a class="indexterm" name="id3331039"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_text,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tip_private,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
This signal is emitted when the toolitem's tooltip changes.
Application developers can use <a href="GtkToolItem.html#gtk-tool-item-set-tooltip"><code class="function">gtk_tool_item_set_tooltip()</code></a> to
set the item's tooltip.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> the object the signal was emitted on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tooltips</code></em> :</span></td>
<td> the <a href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tip_text</code></em> :</span></td>
<td> the tooltip text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tip_private</code></em> :</span></td>
<td> the tooltip private text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the signal was handled, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if not
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3331227"></a><h3>
<a name="GtkToolItem-toolbar-reconfigured"></a>The "toolbar-reconfigured" signal</h3>
<a class="indexterm" name="id3331239"></a><pre class="programlisting">void user_function (<a href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *toolitem,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
This signal is emitted when some property of the toolbar that the
item is a child of changes. For custom subclasses of <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>,
the default handler of this signal use the functions
</p>
<div class="itemizedlist"><ul type="disc">
<li><a href="GtkToolbar.html#gtk-toolbar-get-orientation"><code class="function">gtk_toolbar_get_orientation()</code></a></li>
<li><a href="GtkToolbar.html#gtk-toolbar-get-style"><code class="function">gtk_toolbar_get_style()</code></a></li>
<li><a href="GtkToolbar.html#gtk-toolbar-get-icon-size"><code class="function">gtk_toolbar_get_icon_size()</code></a></li>
<li><a href="GtkToolbar.html#gtk-toolbar-get-relief-style"><code class="function">gtk_toolbar_get_relief_style()</code></a></li>
</ul></div>
<p>
to find out what the toolbar should look like and change
themselves accordingly.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>toolitem</code></em> :</span></td>
<td> the object the signal was emitted on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3331375"></a><h2>See Also</h2>
<p>
<dt><span class="term"><a href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></span></dt><dd><p>The toolbar widget</p></dd>
<dt><span class="term"><a href="GtkToolButton.html" title="GtkToolButton"><span class="type">GtkToolButton</span></a></span></dt><dd><p>A subclass of <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> that displays buttons on
the toolbar</p></dd>
<dt><span class="term"><a href="GtkSeparatorToolItem.html" title="GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a></span></dt><dd><p>A subclass of <a href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> that separates groups of
items on a toolbar</p></dd>
</p>
</div>
</div>
</body>
</html>