~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtktoolitem.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.ToolItem</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtktoolbutton.html" title="gtk.ToolButton"><link rel="next" href="class-gtktoolshell.html" title="gtk.ToolShell"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.ToolItem</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktoolbutton.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktoolshell.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktoolitem"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.ToolItem</h2><p>gtk.ToolItem — the base class of widgets
2
2
    that can be added to <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>
3
 
    (new in PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3757225"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolItem</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a></span></span>):
4
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtktoolitem.html#constructor-gtktoolitem" title="Constructor">gtk.ToolItem</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-homogeneous" title="gtk.ToolItem.set_homogeneous">set_homogeneous</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-homogeneous" title="gtk.ToolItem.get_homogeneous">get_homogeneous</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-expand" title="gtk.ToolItem.set_expand">set_expand</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-expand" title="gtk.ToolItem.get_expand">get_expand</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip" title="gtk.ToolItem.set_tooltip">set_tooltip</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltips</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tip_text</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tip_private</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-use-drag-window" title="gtk.ToolItem.set_use_drag_window">set_use_drag_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_drag_window</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-use-drag-window" title="gtk.ToolItem.get_use_drag_window">get_use_drag_window</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-visible-horizontal" title="gtk.ToolItem.set_visible_horizontal">set_visible_horizontal</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visible_horizontal</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-visible-horizontal" title="gtk.ToolItem.get_visible_horizontal">get_visible_horizontal</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-visible-vertical" title="gtk.ToolItem.set_visible_vertical">set_visible_vertical</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visible_vertical</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-visible-vertical" title="gtk.ToolItem.get_visible_vertical">get_visible_vertical</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-is-important" title="gtk.ToolItem.set_is_important">set_is_important</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_important</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-is-important" title="gtk.ToolItem.get_is_important">get_is_important</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-icon-size" title="gtk.ToolItem.get_icon_size">get_icon_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-orientation" title="gtk.ToolItem.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-toolbar-style" title="gtk.ToolItem.get_toolbar_style">get_toolbar_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-relief-style" title="gtk.ToolItem.get_relief_style">get_relief_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--retrieve-proxy-menu-item" title="gtk.ToolItem.retrieve_proxy_menu_item">retrieve_proxy_menu_item</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-proxy-menu-item" title="gtk.ToolItem.set_proxy_menu_item">set_proxy_menu_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-proxy-menu-item" title="gtk.ToolItem.get_proxy_menu_item">get_proxy_menu_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--rebuild-menu" title="gtk.ToolItem.rebuild_menu">rebuild_menu</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip-markup" title="gtk.ToolItem.set_tooltip_markup">set_tooltip_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip-text" title="gtk.ToolItem.set_tooltip_text">set_tooltip_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--toolbar-reconfigured" title="gtk.ToolItem.toolbar_reconfigured">toolbar_reconfigured</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3757893"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
3
    (new in PyGTK 2.4)</p></div><div class="refsect1" lang="en"><a name="id3958132"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.ToolItem</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a></span></span>):
 
4
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtktoolitem.html#constructor-gtktoolitem" title="Constructor">gtk.ToolItem</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-homogeneous" title="gtk.ToolItem.set_homogeneous">set_homogeneous</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-homogeneous" title="gtk.ToolItem.get_homogeneous">get_homogeneous</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-expand" title="gtk.ToolItem.set_expand">set_expand</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>expand</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-expand" title="gtk.ToolItem.get_expand">get_expand</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip" title="gtk.ToolItem.set_tooltip">set_tooltip</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>tooltips</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tip_text</code></strong></span><span class="initializer">=None</span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>tip_private</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-use-drag-window" title="gtk.ToolItem.set_use_drag_window">set_use_drag_window</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_drag_window</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-use-drag-window" title="gtk.ToolItem.get_use_drag_window">get_use_drag_window</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-visible-horizontal" title="gtk.ToolItem.set_visible_horizontal">set_visible_horizontal</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visible_horizontal</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-visible-horizontal" title="gtk.ToolItem.get_visible_horizontal">get_visible_horizontal</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-visible-vertical" title="gtk.ToolItem.set_visible_vertical">set_visible_vertical</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>visible_vertical</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-visible-vertical" title="gtk.ToolItem.get_visible_vertical">get_visible_vertical</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-is-important" title="gtk.ToolItem.set_is_important">set_is_important</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>is_important</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-is-important" title="gtk.ToolItem.get_is_important">get_is_important</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-icon-size" title="gtk.ToolItem.get_icon_size">get_icon_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-orientation" title="gtk.ToolItem.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-toolbar-style" title="gtk.ToolItem.get_toolbar_style">get_toolbar_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-relief-style" title="gtk.ToolItem.get_relief_style">get_relief_style</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--retrieve-proxy-menu-item" title="gtk.ToolItem.retrieve_proxy_menu_item">retrieve_proxy_menu_item</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-proxy-menu-item" title="gtk.ToolItem.set_proxy_menu_item">set_proxy_menu_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--get-proxy-menu-item" title="gtk.ToolItem.get_proxy_menu_item">get_proxy_menu_item</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>menu_item_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--rebuild-menu" title="gtk.ToolItem.rebuild_menu">rebuild_menu</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip-markup" title="gtk.ToolItem.set_tooltip_markup">set_tooltip_markup</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>markup</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--set-tooltip-text" title="gtk.ToolItem.set_tooltip_text">set_tooltip_text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>text</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktoolitem.html#method-gtktoolitem--toolbar-reconfigured" title="gtk.ToolItem.toolbar_reconfigured">toolbar_reconfigured</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3958800"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
5
5
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
6
6
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
7
7
      +-- <a class="link" href="class-gtkcontainer.html" title="gtk.Container">gtk.Container</a>
8
8
        +-- <a class="link" href="class-gtkbin.html" title="gtk.Bin">gtk.Bin</a>
9
9
          +-- <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem">gtk.ToolItem</a>
10
 
</pre></div><div class="refsect1" lang="en"><a name="id3757944"></a><h2>Implemented Interfaces</h2><p>
 
10
</pre></div><div class="refsect1" lang="en"><a name="id3958852"></a><h2>Implemented Interfaces</h2><p>
11
11
                        <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a>
12
12
                        implements 
13
13
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
18
18
when the toolbar is in a horizontal orientation. Default value:
19
19
<code class="literal">True</code></td></tr><tr valign="top"><td valign="top">"visible-vertical"</td><td valign="top">Read-Write</td><td valign="top">If <code class="literal">True</code>, the toolbar item is visible
20
20
when the toolbar is in a vertical orientation. Default value:
21
 
<code class="literal">True</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtktoolitem"></a><h2>gtk.ToolItem Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktoolitem"></a><h2>gtk.ToolItem Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--create-menu-proxy" title='The "create-menu-proxy" gtk.ToolItem Signal'>create-menu-proxy</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--set-tooltip" title='The "set-tooltip" gtk.ToolItem Signal'>set-tooltip</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tooltips</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tip_text</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tip_private</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--toolbar-reconfigured" title='The "toolbar-reconfigured" gtk.ToolItem Signal'>toolbar-reconfigured</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="id3758439"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>A <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> is a
 
21
<code class="literal">True</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtktoolitem"></a><h2>gtk.ToolItem Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktoolitem"></a><h2>gtk.ToolItem Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p><p><a class="link" href="class-gtkcontainer.html#signal-prototypes-gtkcontainer" title="gtk.Container Signal Prototypes">gtk.Container Signal Prototypes</a></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--create-menu-proxy" title='The "create-menu-proxy" gtk.ToolItem Signal'>create-menu-proxy</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--set-tooltip" title='The "set-tooltip" gtk.ToolItem Signal'>set-tooltip</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tooltips</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tip_text</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>tip_private</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr><tr><td><p><span class="term">"<a class="link" href="class-gtktoolitem.html#signal-gtktoolitem--toolbar-reconfigured" title='The "toolbar-reconfigured" gtk.ToolItem Signal'>toolbar-reconfigured</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" lang="en"><a name="id3959346"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>A <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a> is a
22
22
widget that can appear on a <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a>. To
23
23
create a toolbar item that contains something else than a button, use the
24
24
<a class="link" href="class-gtktoolitem.html#constructor-gtktoolitem" title="Constructor">gtk.ToolItem</a>() constructor
28
28
<a class="link" href="class-gtktoggletoolbutton.html" title="gtk.ToggleToolButton"><code class="classname">gtk.ToggleToolButton</code></a>
29
29
and <a class="link" href="class-gtkradiotoolbutton.html" title="gtk.RadioToolButton"><code class="classname">gtk.RadioToolButton</code></a>
30
30
classes.  See the <a class="link" href="class-gtktoolbar.html" title="gtk.Toolbar"><code class="classname">gtk.Toolbar</code></a> class
31
 
for a description of the toolbar widget.</p></div><div class="refsect1" lang="en"><a name="constructor-gtktoolitem"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.ToolItem</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new empty <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a></p></div><div class="refsect1" lang="en"><a name="id3758600"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktoolitem--set-homogeneous"></a><h3>gtk.ToolItem.set_homogeneous</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_homogeneous</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>homogeneous</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tool item is the
 
31
for a description of the toolbar widget.</p></div><div class="refsect1" lang="en"><a name="constructor-gtktoolitem"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.ToolItem</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.4 and above.</p></div><p>Creates a new empty <a class="link" href="class-gtktoolitem.html" title="gtk.ToolItem"><code class="classname">gtk.ToolItem</code></a></p></div><div class="refsect1" lang="en"><a name="id3959508"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktoolitem--set-homogeneous"></a><h3>gtk.ToolItem.set_homogeneous</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_homogeneous</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>homogeneous</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>homogeneous</code></strong> :</span></p></td><td>if <code class="literal">True</code> the tool item is the
32
32
          same size as other homogeneous items</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_homogeneous</code>() method sets the
33
33
homogeneous setting of the tool item to the value of
34
34
<em class="parameter"><code>homogeneous</code></em>. If <em class="parameter"><code>homogeneous</code></em> is
178
178
        and other
179
179
        <a class="link" href="class-gtktoolshell.html" title="gtk.ToolShell"><code class="classname">gtk.ToolShell</code></a>
180
180
        implementations use this function to notify children, when some aspect of their configuration changes.
181
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3761215"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtktoolitem--create-menu-proxy"></a><h3>The "create-menu-proxy" gtk.ToolItem Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>toolitem</code></em> :</span></p></td><td>the toolitem that received the
 
181
      </p></div></div><div class="refsect1" lang="en"><a name="id3962122"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtktoolitem--create-menu-proxy"></a><h3>The "create-menu-proxy" gtk.ToolItem Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>toolitem</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><em class="parameter"><code>toolitem</code></em> :</span></p></td><td>the toolitem that received the
182
182
signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
183
183
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
184
184
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if