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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TreeSortable</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-gtktreeselection.html" title="gtk.TreeSelection"><link rel="next" href="class-gtktreestore.html" title="gtk.TreeStore"></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.TreeSortable</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktreeselection.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktreestore.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktreesortable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TreeSortable</h2><p>gtk.TreeSortable — an interface for sorting a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a></p></div><div class="refsect1" lang="en"><a name="id3807604"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TreeSortable</span></span>(<span class="ooclass"><span class="classname">gobject.GInterface</span></span>):
2
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--sort-column-changed" title="gtk.TreeSortable.sort_column_changed">sort_column_changed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--get-sort-column-id" title="gtk.TreeSortable.get_sort_column_id">get_sort_column_id</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-sort-column-id" title="gtk.TreeSortable.set_sort_column_id">set_sort_column_id</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sort_column_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>order</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-sort-func" title="gtk.TreeSortable.set_sort_func">set_sort_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_column_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-default-sort-func" title="gtk.TreeSortable.set_default_sort_func">set_default_sort_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--has-default-sort-func" title="gtk.TreeSortable.has_default_sort_func">has_default_sort_func</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktreesortable"></a><h2>gtk.TreeSortable Signal Prototypes</h2><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-gtktreesortable.html#signal-gtktreesortable--sort-column-changed" title='The "sort-column-changed" gtk.TreeSortable Signal'>sort-column-changed</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>treesortable</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="id3807904"></a><h2>Description</h2><p>The <a class="link" href="class-gtktreesortable.html" title="gtk.TreeSortable"><code class="classname">gtk.TreeSortable</code></a>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TreeSortable</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" 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-gtktreeselection.html" title="gtk.TreeSelection"><link rel="next" href="class-gtktreestore.html" title="gtk.TreeStore"></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.TreeSortable</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktreeselection.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktreestore.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.TreeSortable"><a name="class-gtktreesortable"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TreeSortable</h2><p>gtk.TreeSortable — an interface for sorting a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a></p></div><div class="refsect1" title="Synopsis"><a name="id4117669"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TreeSortable</span></span>(<span class="ooclass"><span class="classname">gobject.GInterface</span></span>):
 
2
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--sort-column-changed" title="gtk.TreeSortable.sort_column_changed">sort_column_changed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--get-sort-column-id" title="gtk.TreeSortable.get_sort_column_id">get_sort_column_id</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-sort-column-id" title="gtk.TreeSortable.set_sort_column_id">set_sort_column_id</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sort_column_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>order</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-sort-func" title="gtk.TreeSortable.set_sort_func">set_sort_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_column_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--set-default-sort-func" title="gtk.TreeSortable.set_default_sort_func">set_default_sort_func</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtktreesortable.html#method-gtktreesortable--has-default-sort-func" title="gtk.TreeSortable.has_default_sort_func">has_default_sort_func</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="gtk.TreeSortable Signal Prototypes"><a name="signal-prototypes-gtktreesortable"></a><h2>gtk.TreeSortable Signal Prototypes</h2><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-gtktreesortable.html#signal-gtktreesortable--sort-column-changed" title='The "sort-column-changed" gtk.TreeSortable Signal'>sort-column-changed</a>"</span></p></td><td><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>treesortable</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" title="Description"><a name="id4117969"></a><h2>Description</h2><p>The <a class="link" href="class-gtktreesortable.html" title="gtk.TreeSortable"><code class="classname">gtk.TreeSortable</code></a>
3
3
interface provide the common methods for a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> to
4
4
implement a sorted model for a <a class="link" href="class-gtktreeview.html" title="gtk.TreeView"><code class="classname">gtk.TreeView</code></a>. See
5
5
the <a class="link" href="class-gtktreemodelsort.html" title="gtk.TreeModelSort"><code class="classname">gtk.TreeModelSort</code></a>
15
15
<a class="link" href="class-gtktreestore.html" title="gtk.TreeStore"><code class="classname">gtk.TreeStore</code></a>
16
16
objects automatically setup sort column IDs corresponding to the columns in
17
17
the store. These sort column IDs are associated with an internal comparison
18
 
function that handles the fundamental types:</p><div class="itemizedlist"><ul type="disc"><li>gboolean</li><li>str</li><li>int</li><li>long</li><li>float</li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Once a sort column ID has been set on a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
 
18
function that handles the fundamental types:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">gboolean</li><li class="listitem">str</li><li class="listitem">int</li><li class="listitem">long</li><li class="listitem">float</li></ul></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Once a sort column ID has been set on a <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a>
19
19
implementing the <a class="link" href="class-gtktreesortable.html" title="gtk.TreeSortable"><code class="classname">gtk.TreeSortable</code></a>
20
20
interface it cannot be returned to the original unsorted state. You can
21
21
change the sort function or use a default sort function but you cannot set
22
22
the <a class="link" href="class-gtktreemodel.html" title="gtk.TreeModel"><code class="classname">gtk.TreeModel</code></a> to
23
 
have no sort function.</p></div></div><div class="refsect1" lang="en"><a name="id3808088"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtktreesortable--sort-column-changed"></a><h3>gtk.TreeSortable.sort_column_changed</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">sort_column_changed</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">sort_column_changed</code>() method emits
24
 
the "sort_column_changed" signal on the treesortable object.</p></div><div class="refsect2" lang="en"><a name="method-gtktreesortable--get-sort-column-id"></a><h3>gtk.TreeSortable.get_sort_column_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_sort_column_id</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>a tuple containing the sort column id and the
 
23
have no sort function.</p></div></div><div class="refsect1" title="Methods"><a name="id4118153"></a><h2>Methods</h2><div class="refsect2" title="gtk.TreeSortable.sort_column_changed"><a name="method-gtktreesortable--sort-column-changed"></a><h3>gtk.TreeSortable.sort_column_changed</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">sort_column_changed</span>(<span class="methodparam"></span>)</code></pre><p>The <code class="methodname">sort_column_changed</code>() method emits
 
24
the "sort_column_changed" signal on the treesortable object.</p></div><div class="refsect2" title="gtk.TreeSortable.get_sort_column_id"><a name="method-gtktreesortable--get-sort-column-id"></a><h3>gtk.TreeSortable.get_sort_column_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_sort_column_id</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>a tuple containing the sort column id and the
25
25
sort type: <code class="literal">gtk.SORT_ASCENDING</code> or
26
26
<code class="literal">gtk.SORT_DESCENDING</code></td></tr></tbody></table><p>The <code class="methodname">get_sort_column_id</code>() method returns
27
27
a tuple containing the current sort column ID and the sort type (either
30
30
ID is not set, then the tuple <code class="literal">(-2, 0)</code> is returned. If the
31
31
sort column ID is set to -1 indicating the default sort function is to be
32
32
used this method returns (<code class="literal">None</code>,
33
 
<code class="literal">None</code>)</p></div><div class="refsect2" lang="en"><a name="method-gtktreesortable--set-sort-column-id"></a><h3>gtk.TreeSortable.set_sort_column_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_sort_column_id</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sort_column_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>order</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>sort_column_id</code></strong> :</span></p></td><td>the sort column id to set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>order</code></strong> :</span></p></td><td>the sort order:
 
33
<code class="literal">None</code>)</p></div><div class="refsect2" title="gtk.TreeSortable.set_sort_column_id"><a name="method-gtktreesortable--set-sort-column-id"></a><h3>gtk.TreeSortable.set_sort_column_id</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_sort_column_id</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>sort_column_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>order</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>sort_column_id</code></strong> :</span></p></td><td>the sort column id to set</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>order</code></strong> :</span></p></td><td>the sort order:
34
34
          <code class="literal">gtk.SORT_ASCENDING</code> or
35
35
          <code class="literal">gtk.SORT_DESCENDING</code></td></tr></tbody></table><p>The <code class="methodname">set_sort_column_id</code>() method sets
36
36
the current sort comparison function to that associated with the sort column
40
40
<code class="literal">gtk.SORT_DESCENDING</code>. The treesortable will resort itself
41
41
to reflect this change, after emitting a "sort_column_changed" signal.</p><p>If <em class="parameter"><code>sort_column_id</code></em> is -1, then the default
42
42
sort function will be used, if it is set. If a default sort function is not
43
 
set then the sort column ID is not changed.</p></div><div class="refsect2" lang="en"><a name="method-gtktreesortable--set-sort-func"></a><h3>gtk.TreeSortable.set_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_sort_func</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_column_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</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>sort_column_id</code></em> :</span></p></td><td>the sort column id to set the function
 
43
set then the sort column ID is not changed.</p></div><div class="refsect2" title="gtk.TreeSortable.set_sort_func"><a name="method-gtktreesortable--set-sort-func"></a><h3>gtk.TreeSortable.set_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_sort_func</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_column_id</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</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>sort_column_id</code></em> :</span></p></td><td>the sort column id to set the function
44
44
for</td></tr><tr><td><p><span class="term"><em class="parameter"><code>sort_func</code></em> :</span></p></td><td>The sorting function</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>the user data to pass to the sort func, or
45
45
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">set_sort_func</code>() method sets the
46
46
comparison function (or method) used when sorting on the sort column ID
62
62
<em class="parameter"><code>iter1</code></em> row should come before the
63
63
<em class="parameter"><code>iter2</code></em> row, 0 if the rows are equal, or 1 if the
64
64
<em class="parameter"><code>iter1</code></em> row should come after the
65
 
<em class="parameter"><code>iter2</code></em> row.</p></div><div class="refsect2" lang="en"><a name="method-gtktreesortable--set-default-sort-func"></a><h3>gtk.TreeSortable.set_default_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_default_sort_func</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</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>sort_func</code></em> :</span></p></td><td>the sorting function</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>the user data to pass to
 
65
<em class="parameter"><code>iter2</code></em> row.</p></div><div class="refsect2" title="gtk.TreeSortable.set_default_sort_func"><a name="method-gtktreesortable--set-default-sort-func"></a><h3>gtk.TreeSortable.set_default_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_default_sort_func</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>sort_func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_data</code></em></span><span class="initializer">=None</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>sort_func</code></em> :</span></p></td><td>the sorting function</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>the user data to pass to
66
66
<em class="parameter"><code>sort_func</code></em>, or
67
67
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">set_default_sort_func</code>() method sets
68
68
the default comparison function (or method) to the value of
74
74
<code class="literal">None</code> to have no default comparison function. This means
75
75
that once the model has been sorted, it can't go back to the default
76
76
state. In this case, when the current sort column id of sortable is -1, the
77
 
model will be unsorted.</p></div><div class="refsect2" lang="en"><a name="method-gtktreesortable--has-default-sort-func"></a><h3>gtk.TreeSortable.has_default_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_default_sort_func</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><code class="literal">True</code>, if the model has a
 
77
model will be unsorted.</p></div><div class="refsect2" title="gtk.TreeSortable.has_default_sort_func"><a name="method-gtktreesortable--has-default-sort-func"></a><h3>gtk.TreeSortable.has_default_sort_func</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_default_sort_func</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><code class="literal">True</code>, if the model has a
78
78
default sort function</td></tr></tbody></table><p>The <code class="methodname">has_default_sort_func</code>() method
79
79
returns <code class="literal">True</code> if the model has a default sort function.
80
80
This is used primarily by <a class="link" href="class-gtktreeviewcolumn.html" title="gtk.TreeViewColumn"><code class="classname">gtk.TreeViewColumn</code></a> 
81
 
to determine if a model can go back to the default state, or not.</p></div></div><div class="refsect1" lang="en"><a name="id3809015"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="signal-gtktreesortable--sort-column-changed"></a><h3>The "sort-column-changed" gtk.TreeSortable Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>treesortable</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>treesortable</code></em> :</span></p></td><td>the treesortable that received the
 
81
to determine if a model can go back to the default state, or not.</p></div></div><div class="refsect1" title="Signals"><a name="id4119080"></a><h2>Signals</h2><div class="refsect2" title='The "sort-column-changed" gtk.TreeSortable Signal'><a name="signal-gtktreesortable--sort-column-changed"></a><h3>The "sort-column-changed" gtk.TreeSortable Signal</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>treesortable</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>treesortable</code></em> :</span></p></td><td>the treesortable that received the
82
82
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
83
83
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
84
84
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if