<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtksourceview">
  <refnamediv>
    <refname>gtksourceview.SourceView</refname>
    <refpurpose>a widget that displays the source code</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtksourceview.SourceView</classname></ooclass>
      <ooclass><classname><link
linkend="class-gtktextview">gtk.TextView</link></classname></ooclass>
      <constructorsynopsis language="python">
	<methodname><link
linkend="constructor-gtksourceview">gtksourceview.SourceView</link></methodname>
	<methodparam><parameter
		       role="keyword">buffer</parameter><initializer>None</initializer></methodparam>
      </constructorsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-show-line-numbers">set_show_line_numbers</link></methodname>
	<methodparam><parameter
		       role="keyword">show</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-show-line-numbers">get_show_line_numbers</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-show-line-markers">set_show_line_markers</link></methodname>
	<methodparam><parameter
		       role="keyword">show</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-show-line-markers">get_show_line_markers</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-tabs-width">set_tabs_width</link></methodname>
	<methodparam><parameter
		       role="keyword">width</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-tabs-width">get_tabs_width</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-auto-indent">set_auto_indent</link></methodname>
	<methodparam><parameter
		       role="keyword">enable</parameter></methodparam></methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-auto-indent">get_auto_indent</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-insert-spaces-instead-of-tabs">set_insert_spaces_instead_of_tabs</link></methodname>
	<methodparam><parameter
		       role="keyword">enable</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-insert-spaces-instead-of-tabs">get_insert_spaces_instead_of_tabs</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-show-margin">set_show_margin</link></methodname>
	<methodparam><parameter
		       role="keyword">show</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-show-margin">get_show_margin</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-margin">set_margin</link></methodname>
	<methodparam><parameter
		       role="keyword">margin</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-margin">get_margin</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-marker-pixbuf">set_marker_pixbuf</link></methodname>
	<methodparam><parameter
		       role="keyword">marker_type</parameter></methodparam>
	<methodparam><parameter
		       role="keyword">pixbuf</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-marker-pixbuf">get_marker_pixbuf</link></methodname>
	<methodparam></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--set-smart-home-end">set_smart_home_end</link></methodname>
	<methodparam><parameter role="keyword">enable</parameter></methodparam>
      </methodsynopsis>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtksourceview--get-smart-home-end">get_smart_home_end</link></methodname>
	<methodparam><parameter
		       role="keyword">window</parameter></methodparam>
      </methodsynopsis>

</classsynopsis>

  </refsect1>

  <refsect1>
    <title>Ancestry</title>

<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
  +-- <link linkend="class-gtkobject">gtk.Object</link>
    +-- <link linkend="class-gtkwidget">gtk.Widget</link>
      +-- <link linkend="class-gtkcontainer">gtk.Container</link>
        +-- <link linkend="class-gtktextview">gtk.TextView</link>
          +-- <link linkend="class-gtksourceview">gtksourceview.SourceView</link>
</synopsis>

  </refsect1>

  <refsect1>
    <title>Properties</title>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"auto-indent"</entry>
	      <entry>Read-Write</entry>

	      <entry>If <literal>TRUE</literal> enable auto indentation.</entry>
	    </row>

	    <row valign="top">
	      <entry>"insert-spaces-instead-of-tabs"</entry>
	      <entry>Read-Write</entry>

	      <entry>If <literal>TRUE</literal> spaces will be inserted instead of tabs.</entry>
	    </row>

	    <row valign="top">
	      <entry>"margin"</entry>
	      <entry>Read-Write</entry>
	      <entry>Position of the right margin.</entry>
	    </row>

	    <row valign="top">
	      <entry>"show-line-markers"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>TRUE</literal>, the display line marker pixbufs will be shown.</entry>
	    </row>

	    <row valign="top">
	      <entry>"show-line-numbers"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>TRUE</literal>, the line numbers will be shown.</entry>
	    </row>

	    <row valign="top">
	      <entry>"show-margin"</entry>
	      <entry>Read-Write</entry>
	      <entry>If <literal>TRUE</literal>, the right margin will be shown.</entry>
	    </row>

	    <row valign="top">
	      <entry>"smart-home-end"</entry>
	      <entry>Read-Write</entry>
	      <entry><keycap>HOME</keycap> and <keycap>END</keycap> keys move to first/last characters on 
line first before going to the start/end of the line.</entry>
	    </row>

	    <row valign="top">
	      <entry>"tabs-width"</entry>
	      <entry>Read-Write</entry>

	      <entry>Tabs Width.</entry>
	    </row>
    </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

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

    <variablelist>
      <varlistentry>
        <term>"<link linkend="signal-gtksourceview--redo">redo</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>sourceview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>"<link linkend="signal-gtksourceview--undo">undo</link>"</term>
        <listitem>
          <methodsynopsis language="python"><methodname>callback</methodname>
            <methodparam><parameter>sourceview</parameter></methodparam>
            <methodparam><parameter>user_param1</parameter></methodparam>
            <methodparam><parameter>...</parameter></methodparam>
          </methodsynopsis>
        </listitem>
      </varlistentry>
    </variablelist>

  </refsect1>

  <refsect1 id="description-gtktextview">
    <title>Description</title>

<para>A <link linkend="class-gtksourceview"><classname>gtksourceview.SourceView</classname></link>
is a text widget that extends the standard
<link linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
It improves the 
<link linkend="class-gtktextview"><classname>gtk.TextView</classname></link>
by implementing syntax highlighting and other features typical of a source editor.</para></refsect1>

  <refsect1 id="constructor-gtksourceview">
    <title>Constructor</title>

    <programlisting><constructorsynopsis language="python">
	<methodname>gtksourceview.SourceView</methodname>
	<methodparam><parameter
		       role="keyword">buffer</parameter><initializer>None</initializer></methodparam>
      </constructorsynopsis></programlisting>
    <variablelist>
      <varlistentry>
	<term><parameter role="keyword">buffer</parameter>&nbsp;:</term>
	<listitem><simpara>a <link
linkend="class-gtksourcebuffer"><classname>gtksourceview.SourceBuffer</classname></link>
or <literal>None</literal></simpara></listitem>
      </varlistentry>
      <varlistentry>
	<term><emphasis>Returns</emphasis>&nbsp;:</term>
	<listitem><simpara>a new <link
linkend="class-gtksourceview"><classname>gtksourceview.SourceView</classname></link>.</simpara></listitem>
      </varlistentry>
    </variablelist>

    <para>Creates a new <link
linkend="class-gtksourceview"><classname>gtksourceview.SourceView</classname></link>
widget displaying the <link
linkend="class-gtksourcebuffer"><classname>gtksourceview.SourceBuffer</classname></link>
specified by <parameter>buffer</parameter>. If <parameter>buffer</parameter>
is <literal>None</literal>, a new <link
linkend="class-gtksourcebuffer"><classname>gtksourceview.SourceBuffer</classname></link>
will be created. One sourcebuffer can be shared among many widgets.</para>

  </refsect1>

  <refsect1>
    <title>Methods</title>

  <refsect2 id="method-gtksourceview--set-show-line-numbers">
      <title>gtksourceview.SourceView.set_show_line_numbers</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_show_line_numbers</methodname>
	  <methodparam><parameter
			 role="keyword">show</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">show</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> the line numbers will be shown.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_show_line_numbers</methodname>() method sets the property
	  "show-line-numbers" to the value of <parameter>show</parameter>. If <parameter>show</parameter>
	  is set to <literal>TRUE</literal> the line numbers should be visible, otherwise not.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-show-line-numbers">
      <title>gtksourceview.SourceView.get_show_line_numbers</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_show_line_numbers</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if the line numbers are visible, 
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_show_line_numbers</methodname>() method returns the
value of the "show-line-numbers" property which determines if the line numbers should be visible.</para>
    
	</refsect2>
  
 
  <refsect2 id="method-gtksourceview--set-show-line-markers">
      <title>gtksourceview.SourceView.set_show_line_markers</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_show_line_markers</methodname>
	  <methodparam><parameter
			 role="keyword">show</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">show</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> the line markers will be shown.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_show_line_markers</methodname>() method sets the property
	  "show-line-markers" to the value of <parameter>show</parameter>. If <parameter>show</parameter>
	  is set to <literal>TRUE</literal> the line markers should be visible, otherwise not.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-show-line-markers">
      <title>gtksourceview.SourceView.get_show_line_markers</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_show_line_markers</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if the line markers are visible, 
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_show_line_markers</methodname>() method returns the
value of the "show-line-markers" property which determines if the line markers should be visible.</para>
    
	</refsect2>  
  
  <refsect2 id="method-gtksourceview--set-tabs-width">
      <title>gtksourceview.SourceView.set_tabs_width</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_tabs_width</methodname>
	  <methodparam><parameter
			 role="keyword">width</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">width</parameter>&nbsp;:</term>
	  <listitem><simpara>The width of the tabs</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_tabs_width</methodname>() method sets the property
	  "tab-width" to the value of <parameter>width</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-tabs-width">
      <title>gtksourceview.SourceView.get_tabs_width</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_tabs_width</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>The value of <parameter>width</parameter>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_tabs_width</methodname>() method returns the
value of <parameter>width</parameter>.</para>
    
	</refsect2>

  <refsect2 id="method-gtksourceview--set-auto-indent">
      <title>gtksourceview.SourceView.set_auto_indent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_auto_indent</methodname>
	  <methodparam><parameter
			 role="keyword">enable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">enable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> the auto indentation will be active.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_auto_indent</methodname>() method sets the property
	  "auto-indent" to the value of <parameter>enable</parameter>. If <parameter>enable</parameter>
	  is set to <literal>TRUE</literal> the auto indentation is active, otherwise not.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-auto-indent">
      <title>gtksourceview.SourceView.get_auto_indent</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_auto_indent</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if the auto indentation is turned on, 
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_auto_indent</methodname>() method returns the
value of the "auto-indent" property which determines if the auto indentation should be used.</para>
    
	</refsect2>  

  <refsect2 id="method-gtksourceview--set-insert-spaces-instead-of-tabs">
      <title>gtksourceview.SourceView.set_insert_spaces_instead_of_tabs</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_insert_spaces_instead_of_tabs</methodname>
	  <methodparam><parameter
			 role="keyword">enable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">enable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> spaces will be used instead of tabs.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_insert_spaces_instead_of_tabs</methodname>() method sets the property
	  "insert-spaces-instead-of-tabs" to the value of <parameter>enable</parameter>. If <parameter>enable</parameter>
	  is set to <literal>TRUE</literal> then spaces will be used instead of tabs, otherwise not.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-insert-spaces-instead-of-tabs">
      <title>gtksourceview.SourceView.get_insert_spaces_instead_of_tabs</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_insert_spaces_instead_of_tabs</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if spaces are used instead of tabs, 
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_insert_spaces_instead_of_tabs</methodname>() method returns the
value of the "insert-spaces-instead-of-tabs" property which determines if spaces should be used instead of tabs.</para>
    
	</refsect2>
	
  <refsect2 id="method-gtksourceview--set-show-margin">
      <title>gtksourceview.SourceView.set_show_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_show_margin</methodname>
	  <methodparam><parameter
			 role="keyword">show</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">show</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> the line markers will be shown.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_show_margin</methodname>() method sets the property
	  "show-margin" to the value of <parameter>show</parameter>. If <parameter>show</parameter>
	  is set to <literal>TRUE</literal> the margin should be visible, otherwise not.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-show-margin">
      <title>gtksourceview.SourceView.get_show_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_show_margin</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if the line markers are visible, 
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_show_margin</methodname>() method returns the
value of the "show-margin" property which determines if the margin should be visible.</para>
    
	</refsect2>  	


<refsect2 id="method-gtksourceview--set-margin">
      <title>gtksourceview.SourceView.set_tabs_width</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_margin</methodname>
	  <methodparam><parameter
			 role="keyword">margin</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">margin</parameter>&nbsp;:</term>
	  <listitem><simpara>The width of the margin</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_margin</methodname>() method sets the property
	  "margin" to the value of <parameter>margin</parameter>.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-margin">
      <title>gtksourceview.SourceView.get_margin</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_margin</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>The value of <parameter>margin</parameter>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_margin</methodname>() method returns the
value of <parameter>margin</parameter>.</para>
    
	</refsect2>	


<refsect2 id="method-gtksourceview--set-marker-pixbuf">
      <title>gtksourceview.SourceView.set_marker_pixbuf</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_marker_pixbuf</methodname>
	  <methodparam><parameter role="keyword">marker_type</parameter></methodparam>
	  <methodparam><parameter role="keyword">pixbuf</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">marker_type</parameter>&nbsp;:</term>
	  <listitem><simpara>The marker that have to be shown in the margin.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_marker_pixbuf</methodname>() method sets the marker
	  that have to be used.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-marker-pixbuf">
      <title>gtksourceview.SourceView.get_marker_pixbuf</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_marker_pixbuf</methodname>
	  <methodparam></methodparam></methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>The value of <parameter>marker_type</parameter>.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_marker_pixbuf</methodname>() method returns the
value of <parameter>marker_type</parameter>.</para>
    
	</refsect2>


<refsect2 id="method-gtksourceview--set-smart-home-end">
      <title>gtksourceview.SourceView.set_smart_home_end</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>set_smart_home_end</methodname>
	  <methodparam><parameter
			 role="keyword">enable</parameter></methodparam>
	</methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><parameter role="keyword">enable</parameter>&nbsp;:</term>
	  <listitem><simpara>if <literal>TRUE</literal> spaces will be used instead of tabs.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>set_smart_home_end</methodname>() method sets the property
	  "smart-home-end" to the value of <parameter>enable</parameter>. If <parameter>enable</parameter>
	  is set to <literal>TRUE</literal> then <keycap>HOME</keycap> and <keycap>END</keycap> keys move to first/last characters on 
line first before going to the start/end of the line.</para>

    </refsect2>

    <refsect2 id="method-gtksourceview--get-smart-home-end">
      <title>gtksourceview.SourceView.get_smart_home_end</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>get_smart_home_end</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara><literal>TRUE</literal> if <keycap>HOME</keycap> and <keycap>END</keycap> keys move 
to first/last characters on line first before going to the start/end of the line.
	  <literal>FALSE</literal> otherwise.</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>get_smart_home_end</methodname>() method returns the
value of the "smart-home-end" property which determines if <keycap>HOME</keycap> and <keycap>END</keycap> keys 
move to first/last characters on line first before going to the start/end of the line.</para>
    
	</refsect2>

</refsect1>

<refsect1>
    <title>Signals</title>

    <refsect2 id="signal-gtksourceview--redo">
      <title>The "redo" gtksourceview.SourceView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>sourceview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>sourceview</parameter>&nbsp;:</term>
	  <listitem><simpara>the sourceview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "redo" signal is emitted when ...</para>

    </refsect2>

    <refsect2 id="signal-gtksourceview--undo">
      <title>The "undo" gtksourceview.SourceView Signal</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>callback</methodname>
	  <methodparam><parameter>sourceview</parameter></methodparam>
	  <methodparam><parameter>user_param1</parameter></methodparam>
	  <methodparam><parameter>...</parameter></methodparam>
	</methodsynopsis></programlisting>

      <variablelist>
	<varlistentry>
	  <term><parameter>sourceview</parameter>&nbsp;:</term>
	  <listitem><simpara>the sourceview that received the
signal</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>user_param1</parameter>&nbsp;:</term>
          <listitem><simpara>the first user parameter (if any) specified
with the <link
linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
method</simpara></listitem>
	</varlistentry>
	<varlistentry>
	  <term><parameter>...</parameter>&nbsp;:</term>
	  <listitem><simpara>additional user parameters (if
any)</simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The "undo" signal is emitted when ....</para>

    </refsect2>
  </refsect1>

</refentry>
