<?xml version="1.0"?>
<page id="GimpUi.prop_text_buffer_new"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.TextBuffer</api:type>
      </api:returns>
      <api:name>gimp_prop_text_buffer_new</api:name>
      <api:arg>
        <api:type>GObject.Object</api:type>
        <api:name>config</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>property_name</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>max_len</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.prop_text_buffer_new</title>
  <synopsis><code mime="text/x-python">
@accepts(GObject.Object, unicode, int)
@returns(Gtk.TextBuffer)
def prop_text_buffer_new(config, property_name, max_len):
    # Python wrapper for gimp_prop_text_buffer_new()
  </code></synopsis>
  <p>Creates a <link href="../Gtk-3.0/Gtk.TextBuffer.html">Gtk.TextBuffer</link> to set and display the value of the
specified string property.  Unless the string is expected to
contain multiple lines or a large amount of text, use
<link xref="GimpUi.prop_entry_new"/> instead.  See <link href="../Gtk-3.0/Gtk.TextView.html">Gtk.TextView</link> for information on
how to insert a text buffer into a visible widget.</p>  <p>If <code>max_len</code> is 0 or negative, the text buffer allows an unlimited
number of characters to be entered.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>config</code></title>
  <p>Object to which property is attached.</p>
</item>
<item>
<title><code>property_name</code></title>
  <p>Name of string property.</p>
</item>
<item>
<title><code>max_len</code></title>
  <p>Maximum allowed length of text (in characters).</p>
</item>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
