<refentry id="GtkText">
<refmeta>
<refentrytitle>GtkText</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkText</refname><refpurpose>a text widget.</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

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


struct      <link linkend="GtkText-struct">GtkText</link>;
struct      <link linkend="GtkTextFont">GtkTextFont</link>;
struct      <link linkend="GtkPropertyMark">GtkPropertyMark</link>;
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="gtk-text-new">gtk_text_new</link>                    (<link linkend="GtkAdjustment">GtkAdjustment</link> *hadj,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadj);
void        <link linkend="gtk-text-set-editable">gtk_text_set_editable</link>           (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> editable);
void        <link linkend="gtk-text-set-word-wrap">gtk_text_set_word_wrap</link>          (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> word_wrap);
void        <link linkend="gtk-text-set-line-wrap">gtk_text_set_line_wrap</link>          (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> line_wrap);
void        <link linkend="gtk-text-set-adjustments">gtk_text_set_adjustments</link>        (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *hadj,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadj);
void        <link linkend="gtk-text-set-point">gtk_text_set_point</link>              (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> index);
<link linkend="guint">guint</link>       <link linkend="gtk-text-get-point">gtk_text_get_point</link>              (<link linkend="GtkText">GtkText</link> *text);
<link linkend="guint">guint</link>       <link linkend="gtk-text-get-length">gtk_text_get_length</link>             (<link linkend="GtkText">GtkText</link> *text);
void        <link linkend="gtk-text-freeze">gtk_text_freeze</link>                 (<link linkend="GtkText">GtkText</link> *text);
void        <link linkend="gtk-text-thaw">gtk_text_thaw</link>                   (<link linkend="GtkText">GtkText</link> *text);
void        <link linkend="gtk-text-insert">gtk_text_insert</link>                 (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="GdkFont">GdkFont</link> *font,
                                             <link linkend="GdkColor">GdkColor</link> *fore,
                                             <link linkend="GdkColor">GdkColor</link> *back,
                                             const char *chars,
                                             <link linkend="gint">gint</link> length);
<link linkend="gboolean">gboolean</link>    <link linkend="gtk-text-backward-delete">gtk_text_backward_delete</link>        (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> nchars);
<link linkend="gboolean">gboolean</link>    <link linkend="gtk-text-forward-delete">gtk_text_forward_delete</link>         (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> nchars);
#define     <link linkend="GTK-TEXT-INDEX-CAPS">GTK_TEXT_INDEX</link>                  (t, index)



</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GtkObject">GtkObject</link>
         +----<link linkend="GtkWidget">GtkWidget</link>
               +----<link linkend="GtkOldEditable">GtkOldEditable</link>
                     +----GtkText
</synopsis>

</refsect1>

<refsect1>
<title>Properties</title>
<synopsis>

  &quot;<link linkend="GtkText--hadjustment">hadjustment</link>&quot;          <link linkend="GtkAdjustment">GtkAdjustment</link>        : Read / Write
  &quot;<link linkend="GtkText--vadjustment">vadjustment</link>&quot;          <link linkend="GtkAdjustment">GtkAdjustment</link>        : Read / Write
  &quot;<link linkend="GtkText--line-wrap">line-wrap</link>&quot;            <link linkend="gboolean">gboolean</link>             : Read / Write
  &quot;<link linkend="GtkText--word-wrap">word-wrap</link>&quot;            <link linkend="gboolean">gboolean</link>             : Read / Write
</synopsis>
</refsect1>

<refsect1>
<title>Signal Prototypes</title>
<synopsis>

&quot;<link linkend="GtkText-set-scroll-adjustments">set-scroll-adjustments</link>&quot;
            void        user_function      (<link linkend="GtkText">GtkText</link> *text,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg1,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);
</synopsis>
</refsect1>


<refsect1>
<title>Description</title>
<para>
<warning>
<para>
<link linkend="GtkText">GtkText</link> is deprecated and unsupported. It is known to be
buggy. To use it, you must define the symbol <literal>GTK_ENABLE_BROKEN</literal>
prior to including the GTK+ header files. Use <link linkend="GtkTextView">GtkTextView</link> instead.
</para>
</warning>
A <link linkend="GtkText">GtkText</link> widget allows one to display any given text and manipulate it
by deleting from one point to another, selecting a region, and various
other functions as outlined below.  It is inherited from <link linkend="GtkEditable">GtkEditable</link>.
</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GtkText-struct">struct GtkText</title>
<programlisting>struct GtkText;</programlisting>
<warning>
<para>
<literal>GtkText</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Most of the <link linkend="GtkText-struct">GtkText</link> struct members should not be accessed directly.
Listed below are a few exceptions and how to use them.
</para></refsect2>
<refsect2>
<title><anchor id="GtkTextFont">struct GtkTextFont</title>
<programlisting>struct GtkTextFont;</programlisting>
<warning>
<para>
<literal>GtkTextFont</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Internal <link linkend="GtkText">GtkText</link> data type.
<!-- Pretty sure.. declared in gtktext.c -->
</para></refsect2>
<refsect2>
<title><anchor id="GtkPropertyMark">struct GtkPropertyMark</title>
<programlisting>struct GtkPropertyMark
{
  /* Position in list. */
  GList* property;

  /* Offset into that property. */
  guint offset;

  /* Current index. */
  guint index;
};
</programlisting>
<warning>
<para>
<literal>GtkPropertyMark</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Internal <link linkend="GtkText">GtkText</link> data type.  Should not be accessed directly.
<!-- FIXME: unsure about this  -->
</para></refsect2>
<refsect2>
<title><anchor id="gtk-text-new">gtk_text_new ()</title>
<programlisting><link linkend="GtkWidget">GtkWidget</link>*  gtk_text_new                    (<link linkend="GtkAdjustment">GtkAdjustment</link> *hadj,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadj);</programlisting>
<warning>
<para>
<literal>gtk_text_new</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Creates a new <link linkend="GtkText">GtkText</link> widget, initialized with the given pointers to
<link linkend="GtkAdjustments">GtkAdjustments</link>.  These pointers can be used to track the viewing position
of the <link linkend="GtkText">GtkText</link> widget.  Passing <literal>NULL</literal> to either or both of them will make
the <link linkend="GtkText">GtkText</link> create it's own.  You can set these later with the function
<link linkend="gtk-text-set-adjustment">gtk_text_set_adjustment</link>().
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>hadj</parameter>&nbsp;:</entry>
<entry>horizontal adjustment.
</entry></row>
<row><entry align="right"><parameter>vadj</parameter>&nbsp;:</entry>
<entry>vertical adjustment.
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the new <link linkend="GtkText">GtkText</link> widget.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-set-editable">gtk_text_set_editable ()</title>
<programlisting>void        gtk_text_set_editable           (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> editable);</programlisting>
<warning>
<para>
<literal>gtk_text_set_editable</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Sets whether the <link linkend="GtkText">GtkText</link> widget can be edited by the user or not.  This
still allows you the programmer to make changes with the various <link linkend="GtkText">GtkText</link>
functions.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>editable</parameter>&nbsp;:</entry>
<entry><literal>TRUE</literal> makes it editable, <literal>FALSE</literal> makes it immutable by the user


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-set-word-wrap">gtk_text_set_word_wrap ()</title>
<programlisting>void        gtk_text_set_word_wrap          (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> word_wrap);</programlisting>
<warning>
<para>
<literal>gtk_text_set_word_wrap</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Sets whether the <link linkend="GtkText">GtkText</link> widget wraps words down to the next line if it
can't be completed on the current line.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>word_wrap</parameter>&nbsp;:</entry>
<entry><literal>TRUE</literal> makes it word wrap, <literal>FALSE</literal> disables word wrapping


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-set-line-wrap">gtk_text_set_line_wrap ()</title>
<programlisting>void        gtk_text_set_line_wrap          (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="gboolean">gboolean</link> line_wrap);</programlisting>
<warning>
<para>
<literal>gtk_text_set_line_wrap</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Controls how <link linkend="GtkText">GtkText</link> handles long lines of continuous text.  If line wrap
is on, the line is broken when it reaches the extent of the <link linkend="GtkText">GtkText</link> widget
viewing area and the rest is displayed on the next line.  If it is not set,
the line continues regardless size of current viewing area.  Similar to word
wrap but it disregards word boundaries.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>line_wrap</parameter>&nbsp;:</entry>
<entry><literal>TRUE</literal> turns line wrap on, <literal>FALSE</literal> turns it off


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-set-adjustments">gtk_text_set_adjustments ()</title>
<programlisting>void        gtk_text_set_adjustments        (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *hadj,
                                             <link linkend="GtkAdjustment">GtkAdjustment</link> *vadj);</programlisting>
<warning>
<para>
<literal>gtk_text_set_adjustments</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Allows you to set <link linkend="GtkAdjustment">GtkAdjustment</link> pointers which in turn allows you to
keep track of the viewing position of the <link linkend="GtkText">GtkText</link> widget.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>hadj</parameter>&nbsp;:</entry>
<entry>the horizontal adjustment
</entry></row>
<row><entry align="right"><parameter>vadj</parameter>&nbsp;:</entry>
<entry>the vertical adjustment


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-set-point">gtk_text_set_point ()</title>
<programlisting>void        gtk_text_set_point              (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> index);</programlisting>
<warning>
<para>
<literal>gtk_text_set_point</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Sets the cursor at the given point.  In this case a point constitutes
the number of characters from the extreme upper left corner of the <link linkend="GtkText">GtkText</link>
widget.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>index</parameter>&nbsp;:</entry>
<entry>the number of characters from the upper left corner


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-get-point">gtk_text_get_point ()</title>
<programlisting><link linkend="guint">guint</link>       gtk_text_get_point              (<link linkend="GtkText">GtkText</link> *text);</programlisting>
<warning>
<para>
<literal>gtk_text_get_point</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Gets the current position of the cursor as the number of characters from
the upper left corner of the <link linkend="GtkText">GtkText</link> widget.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the number of characters from the upper left corner


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-get-length">gtk_text_get_length ()</title>
<programlisting><link linkend="guint">guint</link>       gtk_text_get_length             (<link linkend="GtkText">GtkText</link> *text);</programlisting>
<warning>
<para>
<literal>gtk_text_get_length</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the length of the all the text contained within the <link linkend="GtkText">GtkText</link> widget;
disregards current point position.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry>the length of the text


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-freeze">gtk_text_freeze ()</title>
<programlisting>void        gtk_text_freeze                 (<link linkend="GtkText">GtkText</link> *text);</programlisting>
<warning>
<para>
<literal>gtk_text_freeze</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Freezes the <link linkend="GtkText">GtkText</link> widget which disallows redrawing of the widget until
it is thawed.  This is useful if a large number of changes are going to
made to the text within the widget, reducing the amount of flicker seen
by the user.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-thaw">gtk_text_thaw ()</title>
<programlisting>void        gtk_text_thaw                   (<link linkend="GtkText">GtkText</link> *text);</programlisting>
<warning>
<para>
<literal>gtk_text_thaw</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Allows the <link linkend="GtkText">GtkText</link> widget to be redrawn again by GTK.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-insert">gtk_text_insert ()</title>
<programlisting>void        gtk_text_insert                 (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="GdkFont">GdkFont</link> *font,
                                             <link linkend="GdkColor">GdkColor</link> *fore,
                                             <link linkend="GdkColor">GdkColor</link> *back,
                                             const char *chars,
                                             <link linkend="gint">gint</link> length);</programlisting>
<warning>
<para>
<literal>gtk_text_insert</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Inserts given text into the <link linkend="GtkText">GtkText</link> widget with the given properties as
outlined below.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>font</parameter>&nbsp;:</entry>
<entry>the <link linkend="GdkFont">GdkFont</link> to use
</entry></row>
<row><entry align="right"><parameter>fore</parameter>&nbsp;:</entry>
<entry>the foreground color to insert with
</entry></row>
<row><entry align="right"><parameter>back</parameter>&nbsp;:</entry>
<entry>the background color to insert with
</entry></row>
<row><entry align="right"><parameter>chars</parameter>&nbsp;:</entry>
<entry>the actual text to be inserted
</entry></row>
<row><entry align="right"><parameter>length</parameter>&nbsp;:</entry>
<entry>the length of the text to be inserted, passing -1 makes it insert
all the text.


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-backward-delete">gtk_text_backward_delete ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    gtk_text_backward_delete        (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> nchars);</programlisting>
<warning>
<para>
<literal>gtk_text_backward_delete</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Deletes from the current point position backward the given number of
characters.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>nchars</parameter>&nbsp;:</entry>
<entry>the number of characters to delete
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry><literal>TRUE</literal> if the operation was successful, otherwise returns <literal>FALSE</literal>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-text-forward-delete">gtk_text_forward_delete ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    gtk_text_forward_delete         (<link linkend="GtkText">GtkText</link> *text,
                                             <link linkend="guint">guint</link> nchars);</programlisting>
<warning>
<para>
<literal>gtk_text_forward_delete</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Deletes from the current point position forward the given number of
characters.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>nchars</parameter>&nbsp;:</entry>
<entry>the number of characters to delete
</entry></row>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry><literal>TRUE</literal> if the operation was successful, otherwise returns <literal>FALSE</literal>


</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GTK-TEXT-INDEX-CAPS">GTK_TEXT_INDEX()</title>
<programlisting>#define     GTK_TEXT_INDEX(t, index)</programlisting>
<warning>
<para>
<literal>GTK_TEXT_INDEX</literal> is deprecated and should not be used in newly-written code.
</para>
</warning>
<para>
Returns the character at the given index within the <link linkend="GtkText">GtkText</link> widget.
</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>t</parameter>&nbsp;:</entry>
<entry>the <link linkend="GtkText">GtkText</link> widget
</entry></row>
<row><entry align="right"><parameter>index</parameter>&nbsp;:</entry>
<entry>the number of characters from the upper left corner


</entry></row>
</tbody></tgroup></informaltable></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GtkText--hadjustment">&quot;<literal>hadjustment</literal>&quot; (<link linkend="GtkAdjustment">GtkAdjustment</link> : Read / Write)</term>
<listitem>
<para>
Used by the <link linkend="GtkText">GtkText</link> widget to keep track of the size of it's horizontal
text.
</para></listitem></varlistentry>
<varlistentry><term><anchor id="GtkText--vadjustment">&quot;<literal>vadjustment</literal>&quot; (<link linkend="GtkAdjustment">GtkAdjustment</link> : Read / Write)</term>
<listitem>
<para>
Used by the <link linkend="GtkText">GtkText</link> widget to keep track of the size of it's vertical
text.
</para></listitem></varlistentry>
<varlistentry><term><anchor id="GtkText--line-wrap">&quot;<literal>line-wrap</literal>&quot; (<link linkend="gboolean">gboolean</link> : Read / Write)</term>
<listitem>
<para>
Boolean value indicating whether line wrap is enabled or not.
</para></listitem></varlistentry>
<varlistentry><term><anchor id="GtkText--word-wrap">&quot;<literal>word-wrap</literal>&quot; (<link linkend="gboolean">gboolean</link> : Read / Write)</term>
<listitem>
<para>
Boolean value indicated whether word wrap is enabled or not.
</para></listitem></varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Signals</title>
<refsect2><title><anchor id="GtkText-set-scroll-adjustments">The &quot;set-scroll-adjustments&quot; signal</title>
<programlisting>void        user_function                  (<link linkend="GtkText">GtkText</link> *text,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg1,
                                            <link linkend="GtkAdjustment">GtkAdjustment</link> *arg2,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>text</parameter>&nbsp;:</entry>
<entry>the object which received the signal.
</entry></row>
<row><entry align="right"><parameter>arg1</parameter>&nbsp;:</entry>
<entry>
</entry></row>
<row><entry align="right"><parameter>arg2</parameter>&nbsp;:</entry>
<entry>

</entry></row>
<row><entry align="right"><parameter>user_data</parameter>&nbsp;:</entry>
<entry>user data set when the signal handler was connected.</entry></row>
</tbody></tgroup></informaltable></refsect2>
</refsect1>



</refentry>
