<?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="GtkPaned">
<refmeta>
<refentrytitle role="top_of_page" id="GtkPaned.top_of_page">GtkPaned</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkPaned</refname>
<refpurpose>Base class for widgets with two adjustable panes</refpurpose>
</refnamediv>

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

<synopsis>

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

                    <link linkend="GtkPaned-struct">GtkPaned</link>;
<link linkend="void">void</link>                <link linkend="gtk-paned-add1">gtk_paned_add1</link>                      (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child);
<link linkend="void">void</link>                <link linkend="gtk-paned-add2">gtk_paned_add2</link>                      (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child);
#define             <link linkend="gtk-paned-gutter-size">gtk_paned_gutter_size</link>               (p,s)
<link linkend="void">void</link>                <link linkend="gtk-paned-pack1">gtk_paned_pack1</link>                     (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child,
                                                         <link linkend="gboolean">gboolean</link> resize,
                                                         <link linkend="gboolean">gboolean</link> shrink);
<link linkend="void">void</link>                <link linkend="gtk-paned-pack2">gtk_paned_pack2</link>                     (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child,
                                                         <link linkend="gboolean">gboolean</link> resize,
                                                         <link linkend="gboolean">gboolean</link> shrink);
<link linkend="GtkWidget">GtkWidget</link> *         <link linkend="gtk-paned-get-child1">gtk_paned_get_child1</link>                (<link linkend="GtkPaned">GtkPaned</link> *paned);
<link linkend="GtkWidget">GtkWidget</link> *         <link linkend="gtk-paned-get-child2">gtk_paned_get_child2</link>                (<link linkend="GtkPaned">GtkPaned</link> *paned);
#define             <link linkend="gtk-paned-set-gutter-size">gtk_paned_set_gutter_size</link>           (p,s)
<link linkend="void">void</link>                <link linkend="gtk-paned-set-position">gtk_paned_set_position</link>              (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="gint">gint</link> position);
<link linkend="gint">gint</link>                <link linkend="gtk-paned-get-position">gtk_paned_get_position</link>              (<link linkend="GtkPaned">GtkPaned</link> *paned);
</synopsis>
</refsynopsisdiv>

<refsect1 id="GtkPaned.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>
                           +----GtkPaned
                                 +----<link linkend="GtkHPaned">GtkHPaned</link>
                                 +----<link linkend="GtkVPaned">GtkVPaned</link>
</synopsis>
</refsect1>



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


<refsect1 id="GtkPaned.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="GtkPaned--max-position">max-position</link>&quot;             <link linkend="gint">gint</link>                  : Read
  &quot;<link linkend="GtkPaned--min-position">min-position</link>&quot;             <link linkend="gint">gint</link>                  : Read
  &quot;<link linkend="GtkPaned--position">position</link>&quot;                 <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="GtkPaned--position-set">position-set</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
</synopsis>
</refsect1>
<refsect1 id="GtkPaned.child-properties" role="child_properties">
<title role="child_properties.title">Child Properties</title>
<synopsis>
  &quot;<link linkend="GtkPaned--c-resize">resize</link>&quot;                   <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="GtkPaned--c-shrink">shrink</link>&quot;                   <link linkend="gboolean">gboolean</link>              : Read / Write
</synopsis>
</refsect1>
<refsect1 id="GtkPaned.style-properties" role="style_properties">
<title role="style_properties.title">Style Properties</title>
<synopsis>
  &quot;<link linkend="GtkPaned--s-handle-size">handle-size</link>&quot;              <link linkend="gint">gint</link>                  : Read
</synopsis>
</refsect1>

<refsect1 id="GtkPaned.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>
  &quot;<link linkend="GtkPaned-accept-position">accept-position</link>&quot;                                : Run Last / Action
  &quot;<link linkend="GtkPaned-cancel-position">cancel-position</link>&quot;                                : Run Last / Action
  &quot;<link linkend="GtkPaned-cycle-child-focus">cycle-child-focus</link>&quot;                              : Run Last / Action
  &quot;<link linkend="GtkPaned-cycle-handle-focus">cycle-handle-focus</link>&quot;                             : Run Last / Action
  &quot;<link linkend="GtkPaned-move-handle">move-handle</link>&quot;                                    : Run Last / Action
  &quot;<link linkend="GtkPaned-toggle-handle-focus">toggle-handle-focus</link>&quot;                            : Run Last / Action
</synopsis>
</refsect1>


<refsect1 id="GtkPaned.description" role="desc">
<title role="desc.title">Description</title>
<para>
<link linkend="GtkPaned"><type>GtkPaned</type></link> is the base class for widgets with two panes,
arranged either horizontally (<link linkend="GtkHPaned"><type>GtkHPaned</type></link>) or
vertically (<link linkend="GtkVPaned"><type>GtkVPaned</type></link>). Child widgets are
added to the panes of the widget with
<link linkend="gtk-paned-pack1"><function>gtk_paned_pack1()</function></link> and <link linkend="gtk-paned-pack2"><function>gtk_paned_pack2()</function></link>. The division
beween the two children is set by default from the
size requests of the children, but it can be adjusted
by the user.
</para>
<para>
A paned widget draws a separator between the two
child widgets and a small handle that the user
can drag to adjust the division. It does not
draw any relief around the children or around
the separator. (The space in which the separator
is called the gutter.) Often, it is useful
to put each child inside a <link linkend="GtkFrame"><type>GtkFrame</type></link> with the
shadow type set to <link linkend="GTK-SHADOW-IN--CAPS"><literal>GTK_SHADOW_IN</literal></link> so that the
gutter appears as a ridge. No separator is drawn
if one of the children is missing.
</para>
<para>
Each child has two options that can be set,
<parameter>resize</parameter> and <parameter>shrink</parameter>. If <parameter>resize</parameter> is true, then when the
<link linkend="GtkPaned"><type>GtkPaned</type></link> is resized, that child will expand
or shrink along with the paned widget. If <parameter>shrink</parameter>
is true, then when that child can be made smaller
than its requisition by the user. Setting <parameter>shrink</parameter>
to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> allows the application to set a minimum
size. If <parameter>resize</parameter> is false for both children, then
this is treated as if <parameter>resize</parameter> is true for both
children.
</para>
<para>
The application can set the position of the slider
as if it were set by the user, by calling
<link linkend="gtk-paned-set-position"><function>gtk_paned_set_position()</function></link>.
</para>
<example>
<title>Creating a paned widget with minimum sizes.</title>
<programlisting>
GtkWidget *hpaned = gtk_hpaned_new (<!-- -->);
GtkWidget *frame1 = gtk_frame_new (NULL);
GtkWidget *frame2 = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN);
gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN);
gtk_widget_set_size_request (hpaned, 200 + GTK_PANED (hpaned)->gutter_size, -1);
gtk_paned_pack1 (GTK_PANED (hpaned), frame1, TRUE, FALSE);
gtk_widget_set_size_request (frame1, 50, -1);
gtk_paned_pack2 (GTK_PANED (hpaned), frame2, FALSE, FALSE);
gtk_widget_set_size_request (frame2, 50, -1);
</programlisting>
</example>
</refsect1>

<refsect1 id="GtkPaned.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GtkPaned-struct" role="struct">
<title>GtkPaned</title>
<indexterm zone="GtkPaned-struct"><primary sortas="Paned">GtkPaned</primary></indexterm><programlisting>typedef struct _GtkPaned GtkPaned;</programlisting>
<para>
</para></refsect2>
<refsect2 id="gtk-paned-add1" role="function">
<title>gtk_paned_add1 ()</title>
<indexterm zone="gtk-paned-add1"><primary sortas="paned_add1">gtk_paned_add1</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_paned_add1                      (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child);</programlisting>
<para>
Adds a child to the top or left pane with
default parameters. This is equivalent
to <literal>gtk_paned_pack1 (paned, child, FALSE, TRUE)</literal>.
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>child</parameter>&#160;:</term>
<listitem><simpara>the child to add
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-add2" role="function">
<title>gtk_paned_add2 ()</title>
<indexterm zone="gtk-paned-add2"><primary sortas="paned_add2">gtk_paned_add2</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_paned_add2                      (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child);</programlisting>
<para>
Adds a child to the bottom or right pane with default
parameters. This is equivalent to
<literal>gtk_paned_pack2 (paned, child, TRUE, TRUE)</literal>.
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>child</parameter>&#160;:</term>
<listitem><simpara>the child to add
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-gutter-size" role="macro" condition="deprecated:">
<title>gtk_paned_gutter_size()</title>
<indexterm zone="gtk-paned-gutter-size" role="deprecated"><primary sortas="paned_gutter_size">gtk_paned_gutter_size</primary></indexterm><programlisting>#define	gtk_paned_gutter_size(p,s)		(void) 0
</programlisting>
<warning><para><literal>gtk_paned_gutter_size</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
Old name for <link linkend="gtk-paned-set-gutter-size"><function>gtk_paned_set_gutter_size()</function></link>.
</para><variablelist role="params">
<varlistentry><term><parameter>p</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>s</parameter>&#160;:</term>
<listitem><simpara>the width of the gutter in pixels
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-pack1" role="function">
<title>gtk_paned_pack1 ()</title>
<indexterm zone="gtk-paned-pack1"><primary sortas="paned_pack1">gtk_paned_pack1</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_paned_pack1                     (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child,
                                                         <link linkend="gboolean">gboolean</link> resize,
                                                         <link linkend="gboolean">gboolean</link> shrink);</programlisting>
<para>
Adds a child to the top or left pane.
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>child</parameter>&#160;:</term>
<listitem><simpara>the child to add
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>resize</parameter>&#160;:</term>
<listitem><simpara>should this child expand when the paned widget is resized.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>shrink</parameter>&#160;:</term>
<listitem><simpara>can this child be made smaller than its requisition.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-pack2" role="function">
<title>gtk_paned_pack2 ()</title>
<indexterm zone="gtk-paned-pack2"><primary sortas="paned_pack2">gtk_paned_pack2</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_paned_pack2                     (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="GtkWidget">GtkWidget</link> *child,
                                                         <link linkend="gboolean">gboolean</link> resize,
                                                         <link linkend="gboolean">gboolean</link> shrink);</programlisting>
<para>
Adds a child to the bottom or right pane.
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>child</parameter>&#160;:</term>
<listitem><simpara>the child to add
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>resize</parameter>&#160;:</term>
<listitem><simpara>should this child expand when the paned widget is resized.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>shrink</parameter>&#160;:</term>
<listitem><simpara>can this child be made smaller than its requisition.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-get-child1" role="function" condition="since:2.4">
<title>gtk_paned_get_child1 ()</title>
<indexterm zone="gtk-paned-get-child1" role="2.4"><primary sortas="paned_get_child1">gtk_paned_get_child1</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> *         gtk_paned_get_child1                (<link linkend="GtkPaned">GtkPaned</link> *paned);</programlisting>
<para>
Obtains the first child of the paned widget.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkPaned"><type>GtkPaned</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> first child, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if it is not set.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-paned-get-child2" role="function" condition="since:2.4">
<title>gtk_paned_get_child2 ()</title>
<indexterm zone="gtk-paned-get-child2" role="2.4"><primary sortas="paned_get_child2">gtk_paned_get_child2</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link> *         gtk_paned_get_child2                (<link linkend="GtkPaned">GtkPaned</link> *paned);</programlisting>
<para>
Obtains the second child of the paned widget.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkPaned"><type>GtkPaned</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> second child, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if it is not set.

</simpara></listitem></varlistentry>
</variablelist><para role="since">Since 2.4</para></refsect2>
<refsect2 id="gtk-paned-set-gutter-size" role="macro" condition="deprecated:">
<title>gtk_paned_set_gutter_size()</title>
<indexterm zone="gtk-paned-set-gutter-size" role="deprecated"><primary sortas="paned_set_gutter_size">gtk_paned_set_gutter_size</primary></indexterm><programlisting>#define	gtk_paned_set_gutter_size(p,s)		(void) 0
</programlisting>
<warning><para><literal>gtk_paned_set_gutter_size</literal> is deprecated and should not be used in newly-written code.</para></warning>
<para>
In older versions of GTK+, this function used to set the width of the
gutter (the area between the two panes). It does nothing now.
</para><variablelist role="params">
<varlistentry><term><parameter>p</parameter>&#160;:</term>
<listitem><simpara>a paned widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>s</parameter>&#160;:</term>
<listitem><simpara>the width of the gutter in pixels
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-set-position" role="function">
<title>gtk_paned_set_position ()</title>
<indexterm zone="gtk-paned-set-position"><primary sortas="paned_set_position">gtk_paned_set_position</primary></indexterm><programlisting><link linkend="void">void</link>                gtk_paned_set_position              (<link linkend="GtkPaned">GtkPaned</link> *paned,
                                                         <link linkend="gint">gint</link> position);</programlisting>
<para>
Sets the position of the divider between the two panes.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkPaned"><type>GtkPaned</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>position</parameter>&#160;:</term>
<listitem><simpara> pixel position of divider, a negative value means that the position
           is unset.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="gtk-paned-get-position" role="function">
<title>gtk_paned_get_position ()</title>
<indexterm zone="gtk-paned-get-position"><primary sortas="paned_get_position">gtk_paned_get_position</primary></indexterm><programlisting><link linkend="gint">gint</link>                gtk_paned_get_position              (<link linkend="GtkPaned">GtkPaned</link> *paned);</programlisting>
<para>
Obtains the position of the divider between the two panes.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>paned</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkPaned"><type>GtkPaned</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> position of the divider
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GtkPaned.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkPaned--max-position" role="property"><title>The <literal>&quot;max-position&quot;</literal> property</title>
<indexterm zone="GtkPaned--max-position" role="2.4"><primary sortas="Paned:max-position">GtkPaned:max-position</primary></indexterm><programlisting>  &quot;max-position&quot;             <link linkend="gint">gint</link>                  : Read</programlisting>
<para>
The largest possible value for the position property. This property is derived from the
size and shrinkability of the widget's children.</para>
<para>
</para><para>Allowed values: &gt;= 0</para>
<para>Default value: 2147483647</para>
<para>Since 2.4</para>
</refsect2>
<refsect2 id="GtkPaned--min-position" role="property"><title>The <literal>&quot;min-position&quot;</literal> property</title>
<indexterm zone="GtkPaned--min-position" role="2.4"><primary sortas="Paned:min-position">GtkPaned:min-position</primary></indexterm><programlisting>  &quot;min-position&quot;             <link linkend="gint">gint</link>                  : Read</programlisting>
<para>
The smallest possible value for the position property. This property is derived from the
size and shrinkability of the widget's children.</para>
<para>
</para><para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
<para>Since 2.4</para>
</refsect2>
<refsect2 id="GtkPaned--position" role="property"><title>The <literal>&quot;position&quot;</literal> property</title>
<indexterm zone="GtkPaned--position"><primary sortas="Paned:position">GtkPaned:position</primary></indexterm><programlisting>  &quot;position&quot;                 <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>Position of paned separator in pixels (0 means all the way to the left/top).</para><para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkPaned--position-set" role="property"><title>The <literal>&quot;position-set&quot;</literal> property</title>
<indexterm zone="GtkPaned--position-set"><primary sortas="Paned:position-set">GtkPaned:position-set</primary></indexterm><programlisting>  &quot;position-set&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>TRUE if the Position property should be used.</para><para>Default value: FALSE</para>
</refsect2>
</refsect1>
<refsect1 id="GtkPaned.child-property-details" role="child_property_details">
<title role="child_property_details.title">Child Property Details</title>
<refsect2 id="GtkPaned--c-resize" role="property"><title>The <literal>&quot;resize&quot;</literal> child property</title>
<indexterm zone="GtkPaned--c-resize" role="2.4"><primary sortas="Paned:resize">GtkPaned:resize</primary></indexterm><programlisting>  &quot;resize&quot;                   <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
The "resize" child property determines whether the child expands and
shrinks along with the paned widget.</para>
<para>
</para><para>Default value: TRUE</para>
<para>Since 2.4</para>
</refsect2>
<refsect2 id="GtkPaned--c-shrink" role="property"><title>The <literal>&quot;shrink&quot;</literal> child property</title>
<indexterm zone="GtkPaned--c-shrink" role="2.4"><primary sortas="Paned:shrink">GtkPaned:shrink</primary></indexterm><programlisting>  &quot;shrink&quot;                   <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
The "shrink" child property determines whether the child can be made
smaller than its requisition.</para>
<para>
</para><para>Default value: TRUE</para>
<para>Since 2.4</para>
</refsect2>
</refsect1>
<refsect1 id="GtkPaned.style-property-details" role="style_properties_details">
<title role="style_properties_details.title">Style Property Details</title>
<refsect2 id="GtkPaned--s-handle-size" role="property"><title>The <literal>&quot;handle-size&quot;</literal> style property</title>
<indexterm zone="GtkPaned--s-handle-size"><primary sortas="Paned:handle-size">GtkPaned:handle-size</primary></indexterm><programlisting>  &quot;handle-size&quot;              <link linkend="gint">gint</link>                  : Read</programlisting>
<para>Width of handle.</para><para>Allowed values: &gt;= 0</para>
<para>Default value: 5</para>
</refsect2>
</refsect1>

<refsect1 id="GtkPaned.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkPaned-accept-position" role="signal"><title>The <literal>&quot;accept-position&quot;</literal> signal</title>
<indexterm zone="GtkPaned-accept-position" role="2.0"><primary sortas="Paned::accept-position">GtkPaned::accept-position</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link> *widget,
                                                        <link linkend="gpointer">gpointer</link>  user_data)      : Run Last / Action</programlisting>
<para>
The ::accept-position signal is a
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to accept the current position of the handle when 
moving it using key bindings.
</para>
<para>
The default binding for this signal is Return or Space.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2><refsect2 id="GtkPaned-cancel-position" role="signal"><title>The <literal>&quot;cancel-position&quot;</literal> signal</title>
<indexterm zone="GtkPaned-cancel-position" role="2.0"><primary sortas="Paned::cancel-position">GtkPaned::cancel-position</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link> *widget,
                                                        <link linkend="gpointer">gpointer</link>  user_data)      : Run Last / Action</programlisting>
<para>
The ::cancel-position signal is a 
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to cancel moving the position of the handle using key 
bindings. The position of the handle will be reset to the value prior to 
moving it.
</para>
<para>
The default binding for this signal is Escape.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2><refsect2 id="GtkPaned-cycle-child-focus" role="signal"><title>The <literal>&quot;cycle-child-focus&quot;</literal> signal</title>
<indexterm zone="GtkPaned-cycle-child-focus" role="2.0"><primary sortas="Paned::cycle-child-focus">GtkPaned::cycle-child-focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link> *widget,
                                                        <link linkend="gboolean">gboolean</link>  reversed,
                                                        <link linkend="gpointer">gpointer</link>  user_data)      : Run Last / Action</programlisting>
<para>
The ::cycle-child-focus signal is a 
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to cycle the focus between the children of the paned.
</para>
<para>
The default binding is f6.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>reversed</parameter>&#160;:</term>
<listitem><simpara> whether cycling backward or forward
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2><refsect2 id="GtkPaned-cycle-handle-focus" role="signal"><title>The <literal>&quot;cycle-handle-focus&quot;</literal> signal</title>
<indexterm zone="GtkPaned-cycle-handle-focus" role="2.0"><primary sortas="Paned::cycle-handle-focus">GtkPaned::cycle-handle-focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link> *widget,
                                                        <link linkend="gboolean">gboolean</link>  reversed,
                                                        <link linkend="gpointer">gpointer</link>  user_data)      : Run Last / Action</programlisting>
<para>
The ::cycle-handle-focus signal is a 
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to cycle whether the paned should grab focus to allow
the user to change position of the handle by using key bindings.
</para>
<para>
The default binding for this signal is f8.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>reversed</parameter>&#160;:</term>
<listitem><simpara> whether cycling backward or forward
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2><refsect2 id="GtkPaned-move-handle" role="signal"><title>The <literal>&quot;move-handle&quot;</literal> signal</title>
<indexterm zone="GtkPaned-move-handle" role="2.0"><primary sortas="Paned::move-handle">GtkPaned::move-handle</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link>     *widget,
                                                        <link linkend="GtkScrollType">GtkScrollType</link> scroll_type,
                                                        <link linkend="gpointer">gpointer</link>      user_data)        : Run Last / Action</programlisting>
<para>
The ::move-handle signal is a 
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to move the handle when the user is using key bindings 
to move it.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>scroll_type</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GtkScrollType"><type>GtkScrollType</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2><refsect2 id="GtkPaned-toggle-handle-focus" role="signal"><title>The <literal>&quot;toggle-handle-focus&quot;</literal> signal</title>
<indexterm zone="GtkPaned-toggle-handle-focus" role="2.0"><primary sortas="Paned::toggle-handle-focus">GtkPaned::toggle-handle-focus</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            user_function                      (<link linkend="GtkPaned">GtkPaned</link> *widget,
                                                        <link linkend="gpointer">gpointer</link>  user_data)      : Run Last / Action</programlisting>
<para>
The ::toggle-handle-focus is a 
<link linkend="keybinding-signals">keybinding signal</link>
which gets emitted to accept the current position of the handle and then 
move focus to the next widget in the focus chain.
</para>
<para>
The default binding is Tab.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>widget</parameter>&#160;:</term>
<listitem><simpara> the object that received the signal
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist><para>Since 2.0</para></refsect2>
</refsect1>



</refentry>
