KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/gtk-doc/html/gtk/GtkTreeSelection.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkTreeSelection</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="prev" href="GtkTreeModel.html" title="GtkTreeModel">
<link rel="next" href="GtkTreeViewColumn.html" title="GtkTreeViewColumn">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkTreeModel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TreeWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkTreeViewColumn.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3097413" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3098219" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3098145" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id3098169" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkTreeSelection"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3097413"></a><span class="refentrytitle">GtkTreeSelection</span>
</h2>
<p>GtkTreeSelection &#8212; The selection object for <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a></p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

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


            <a href="GtkTreeSelection.html#GtkTreeSelection-struct">GtkTreeSelection</a>;
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    (<a href="GtkTreeSelection.html#GtkTreeSelectionFunc">*GtkTreeSelectionFunc</a>)         (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> path_currently_selected,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void        (<a href="GtkTreeSelection.html#GtkTreeSelectionForeachFunc">*GtkTreeSelectionForeachFunc</a>)  (<a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-set-mode">gtk_tree_selection_set_mode</a>     (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="gtk-Standard-Enumerations.html#GtkSelectionMode">GtkSelectionMode</a> type);
<a href="gtk-Standard-Enumerations.html#GtkSelectionMode">GtkSelectionMode</a> <a href="GtkTreeSelection.html#gtk-tree-selection-get-mode">gtk_tree_selection_get_mode</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-set-select-function">gtk_tree_selection_set_select_function</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeSelection.html#GtkTreeSelectionFunc">GtkTreeSelectionFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Types.html#GtkDestroyNotify">GtkDestroyNotify</a> destroy);
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>    <a href="GtkTreeSelection.html#gtk-tree-selection-get-user-data">gtk_tree_selection_get_user_data</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
<a href="GtkTreeView.html" title="GtkTreeView">GtkTreeView</a>* <a href="GtkTreeSelection.html#gtk-tree-selection-get-tree-view">gtk_tree_selection_get_tree_view</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeSelection.html#gtk-tree-selection-get-selected">gtk_tree_selection_get_selected</a> (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> **model,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-selected-foreach">gtk_tree_selection_selected_foreach</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeSelection.html#GtkTreeSelectionForeachFunc">GtkTreeSelectionForeachFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      <a href="GtkTreeSelection.html#gtk-tree-selection-get-selected-rows">gtk_tree_selection_get_selected_rows</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> **model);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        <a href="GtkTreeSelection.html#gtk-tree-selection-count-selected-rows">gtk_tree_selection_count_selected_rows</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-select-path">gtk_tree_selection_select_path</a>  (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-unselect-path">gtk_tree_selection_unselect_path</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeSelection.html#gtk-tree-selection-path-is-selected">gtk_tree_selection_path_is_selected</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-select-iter">gtk_tree_selection_select_iter</a>  (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-unselect-iter">gtk_tree_selection_unselect_iter</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeSelection.html#gtk-tree-selection-iter-is-selected">gtk_tree_selection_iter_is_selected</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-select-all">gtk_tree_selection_select_all</a>   (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-unselect-all">gtk_tree_selection_unselect_all</a> (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-select-range">gtk_tree_selection_select_range</a> (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *start_path,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *end_path);
void        <a href="GtkTreeSelection.html#gtk-tree-selection-unselect-range">gtk_tree_selection_unselect_range</a>
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *start_path,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *end_path);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3098145"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GtkTreeSelection
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3098169"></a><h2>Signals</h2>
<pre class="synopsis">

"<a href="GtkTreeSelection.html#GtkTreeSelection-changed">changed</a>"   void        user_function      (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *treeselection,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)          : Run first
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3098219"></a><h2>Description</h2>
<p>
The <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a> object is a helper object to manage the selection
for a <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> widget.  The <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a> object is
automatically created when a new <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> widget is created, and
cannot exist independentally of this widget.  The primary reason the
<a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a> objects exists is for cleanliness of code and API.
That is, there is no conceptual reason all these functions could not be
methods on the <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> widget instead of a separate function.
</p>
<p>
The <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a> object is gotten from a <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> by calling
<a href="GtkTreeView.html#gtk-tree-view-get-selection"><code class="function">gtk_tree_view_get_selection()</code></a>.  It can be manipulated to check the
selection status of the tree, as well as select and deselect individual
rows.  Selection is done completely view side.  As a result, multiple
views of the same model can have completely different selections.
Additionally, you cannot change the selection of a row on the model that
is not currently displayed by the view without expanding its parents
first.
</p>
<p>
One of the important things to remember when monitoring the selection of
a view is that the "changed" signal is mostly a hint.  That is, it may
only emit one signal when a range of rows is selected.  Additionally, it
may on occasion emit a "changed" signal when nothing has happened
(mostly as a result of programmers calling select_row on an already
selected row).
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3098338"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3098348"></a><h3>
<a name="GtkTreeSelection-struct"></a>GtkTreeSelection</h3>
<a class="indexterm" name="id3098360"></a><pre class="programlisting">typedef struct _GtkTreeSelection GtkTreeSelection;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3098376"></a><h3>
<a name="GtkTreeSelectionFunc"></a>GtkTreeSelectionFunc ()</h3>
<a class="indexterm" name="id3098389"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    (*GtkTreeSelectionFunc)         (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> path_currently_selected,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
A function used by <a href="GtkTreeSelection.html#gtk-tree-selection-set-select-function"><code class="function">gtk_tree_selection_set_select_function()</code></a> to filter
whether or not a row may be selected.  It is called whenever a row's
state might change.  A return value of <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> indicates to <em class="parameter"><code>selection</code></em>
that it is okay to change the selection.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td>A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
<td>A <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> being viewed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td>The <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> of the row in question
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path_currently_selected</code></em>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, if the path is currently selected
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>user data
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, if the selection state of the row can be toggled


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3098608"></a><h3>
<a name="GtkTreeSelectionForeachFunc"></a>GtkTreeSelectionForeachFunc ()</h3>
<a class="indexterm" name="id3098621"></a><pre class="programlisting">void        (*GtkTreeSelectionForeachFunc)  (<a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> *model,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
A function used by <a href="GtkTreeSelection.html#gtk-tree-selection-selected-foreach"><code class="function">gtk_tree_selection_selected_foreach()</code></a> to map all
selected rows.  It will be called on every selected row in the view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
<td>The <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> being viewed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td>The <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> of a selected row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td>A <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> pointing to a selected row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>user data


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3098770"></a><h3>
<a name="gtk-tree-selection-set-mode"></a>gtk_tree_selection_set_mode ()</h3>
<a class="indexterm" name="id3098783"></a><pre class="programlisting">void        gtk_tree_selection_set_mode     (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="gtk-Standard-Enumerations.html#GtkSelectionMode">GtkSelectionMode</a> type);</pre>
<p>
Sets the selection mode of the <em class="parameter"><code>selection</code></em>.  If the previous type was
<a href="gtk-Standard-Enumerations.html#GTK-SELECTION-MULTIPLE:CAPS"><span class="type">GTK_SELECTION_MULTIPLE</span></a>, then the anchor is kept selected, if it was
previously selected.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
<td> The selection mode
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3098879"></a><h3>
<a name="gtk-tree-selection-get-mode"></a>gtk_tree_selection_get_mode ()</h3>
<a class="indexterm" name="id3098893"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkSelectionMode">GtkSelectionMode</a> gtk_tree_selection_get_mode
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Gets the selection mode for <em class="parameter"><code>selection</code></em>. See
<a href="GtkTreeSelection.html#gtk-tree-selection-set-mode"><code class="function">gtk_tree_selection_set_mode()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> a <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the current selection mode
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3098981"></a><h3>
<a name="gtk-tree-selection-set-select-function"></a>gtk_tree_selection_set_select_function ()</h3>
<a class="indexterm" name="id3098994"></a><pre class="programlisting">void        gtk_tree_selection_set_select_function
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeSelection.html#GtkTreeSelectionFunc">GtkTreeSelectionFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Types.html#GtkDestroyNotify">GtkDestroyNotify</a> destroy);</pre>
<p>
Sets the selection function.  If set, this function is called before any node
is selected or unselected, giving some control over which nodes are selected.
The select function should return <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the state of the node may be toggled,
and <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if the state of the node should be left unchanged.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> The selection function.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td> The selection function's data.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>destroy</code></em>&#160;:</span></td>
<td> The destroy function for user data.  May be NULL.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099145"></a><h3>
<a name="gtk-tree-selection-get-user-data"></a>gtk_tree_selection_get_user_data ()</h3>
<a class="indexterm" name="id3099158"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>    gtk_tree_selection_get_user_data
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Returns the user data for the selection function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The user data.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099228"></a><h3>
<a name="gtk-tree-selection-get-tree-view"></a>gtk_tree_selection_get_tree_view ()</h3>
<a class="indexterm" name="id3099242"></a><pre class="programlisting"><a href="GtkTreeView.html" title="GtkTreeView">GtkTreeView</a>* gtk_tree_selection_get_tree_view
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Returns the tree view associated with <em class="parameter"><code>selection</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> A <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099325"></a><h3>
<a name="gtk-tree-selection-get-selected"></a>gtk_tree_selection_get_selected ()</h3>
<a class="indexterm" name="id3099339"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_selection_get_selected (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> **model,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to the currently selected node if <em class="parameter"><code>selection</code></em> is set to
<a href="gtk-Standard-Enumerations.html#GTK-SELECTION-SINGLE:CAPS"><span class="type">GTK_SELECTION_SINGLE</span></a> or <a href="gtk-Standard-Enumerations.html#GTK-SELECTION-BROWSE:CAPS"><span class="type">GTK_SELECTION_BROWSE</span></a>.  <em class="parameter"><code>iter</code></em> may be NULL if you
just want to test if <em class="parameter"><code>selection</code></em> has any selected nodes.  <em class="parameter"><code>model</code></em> is filled
with the current model as a convenience.  This function will not work if you
use <em class="parameter"><code>selection</code></em> is <a href="gtk-Standard-Enumerations.html#GTK-SELECTION-MULTIPLE:CAPS"><span class="type">GTK_SELECTION_MULTIPLE</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
<td> A pointer to set to the <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, or NULL.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> The <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or NULL.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> TRUE, if there is a selected node.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099533"></a><h3>
<a name="gtk-tree-selection-selected-foreach"></a>gtk_tree_selection_selected_foreach ()</h3>
<a class="indexterm" name="id3099547"></a><pre class="programlisting">void        gtk_tree_selection_selected_foreach
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeSelection.html#GtkTreeSelectionForeachFunc">GtkTreeSelectionForeachFunc</a> func,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Calls a function for each selected node. Note that you cannot modify
the tree or selection from within this function. As a result,
<a href="GtkTreeSelection.html#gtk-tree-selection-get-selected-rows"><code class="function">gtk_tree_selection_get_selected_rows()</code></a> might be more useful.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> The function to call for each selected node.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td> user data to pass to the function.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099665"></a><h3>
<a name="gtk-tree-selection-get-selected-rows"></a>gtk_tree_selection_get_selected_rows ()</h3>
<a class="indexterm" name="id3099681"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_tree_selection_get_selected_rows
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a> **model);</pre>
<p>
Creates a list of path of all selected rows. Additionally, if you are
planning on modifying the model after calling this function, you may
want to convert the returned list into a list of <a href="GtkTreeModel.html#GtkTreeRowReference"><span class="type">GtkTreeRowReference</span></a>s.
To do this, you can use <a href="GtkTreeModel.html#gtk-tree-row-reference-new"><code class="function">gtk_tree_row_reference_new()</code></a>.
</p>
<p>
To free the return value, use:
</p>
<div class="informalexample"><pre class="programlisting">
g_list_foreach (list, gtk_tree_path_free, NULL);
g_list_free (list);
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>model</code></em>&#160;:</span></td>
<td> A pointer to set to the <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, or NULL.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> A <a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> containing a <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> for each selected row.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099836"></a><h3>
<a name="gtk-tree-selection-count-selected-rows"></a>gtk_tree_selection_count_selected_rows ()</h3>
<a class="indexterm" name="id3099852"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        gtk_tree_selection_count_selected_rows
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Returns the number of rows that have been selected in <em class="parameter"><code>tree</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The number of rows selected.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3099933"></a><h3>
<a name="gtk-tree-selection-select-path"></a>gtk_tree_selection_select_path ()</h3>
<a class="indexterm" name="id3099947"></a><pre class="programlisting">void        gtk_tree_selection_select_path  (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre>
<p>
Select the row at <em class="parameter"><code>path</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td> The <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> to be selected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100040"></a><h3>
<a name="gtk-tree-selection-unselect-path"></a>gtk_tree_selection_unselect_path ()</h3>
<a class="indexterm" name="id3100054"></a><pre class="programlisting">void        gtk_tree_selection_unselect_path
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre>
<p>
Unselects the row at <em class="parameter"><code>path</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td> The <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> to be unselected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100148"></a><h3>
<a name="gtk-tree-selection-path-is-selected"></a>gtk_tree_selection_path_is_selected ()</h3>
<a class="indexterm" name="id3100163"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_selection_path_is_selected
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *path);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the row pointed to by <em class="parameter"><code>path</code></em> is currently selected.  If <em class="parameter"><code>path</code></em>
does not point to a valid location, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> is returned</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> to check selection on.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>path</code></em> is selected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100311"></a><h3>
<a name="gtk-tree-selection-select-iter"></a>gtk_tree_selection_select_iter ()</h3>
<a class="indexterm" name="id3100325"></a><pre class="programlisting">void        gtk_tree_selection_select_iter  (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Selects the specified iterator.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> The <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to be selected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100413"></a><h3>
<a name="gtk-tree-selection-unselect-iter"></a>gtk_tree_selection_unselect_iter ()</h3>
<a class="indexterm" name="id3100426"></a><pre class="programlisting">void        gtk_tree_selection_unselect_iter
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Unselects the specified iterator.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> The <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to be unselected.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100515"></a><h3>
<a name="gtk-tree-selection-iter-is-selected"></a>gtk_tree_selection_iter_is_selected ()</h3>
<a class="indexterm" name="id3100529"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_selection_iter_is_selected
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the row at <em class="parameter"><code>iter</code></em> is currently selected.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, if <em class="parameter"><code>iter</code></em> is selected
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100660"></a><h3>
<a name="gtk-tree-selection-select-all"></a>gtk_tree_selection_select_all ()</h3>
<a class="indexterm" name="id3100674"></a><pre class="programlisting">void        gtk_tree_selection_select_all   (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Selects all the nodes. <em class="parameter"><code>selection</code></em> must be set to <a href="gtk-Standard-Enumerations.html#GTK-SELECTION-MULTIPLE:CAPS"><span class="type">GTK_SELECTION_MULTIPLE</span></a>
mode.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100747"></a><h3>
<a name="gtk-tree-selection-unselect-all"></a>gtk_tree_selection_unselect_all ()</h3>
<a class="indexterm" name="id3100760"></a><pre class="programlisting">void        gtk_tree_selection_unselect_all (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection);</pre>
<p>
Unselects all the nodes.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100819"></a><h3>
<a name="gtk-tree-selection-select-range"></a>gtk_tree_selection_select_range ()</h3>
<a class="indexterm" name="id3100832"></a><pre class="programlisting">void        gtk_tree_selection_select_range (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *start_path,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *end_path);</pre>
<p>
Selects a range of nodes, determined by <em class="parameter"><code>start_path</code></em> and <em class="parameter"><code>end_path</code></em> inclusive.
<em class="parameter"><code>selection</code></em> must be set to <a href="gtk-Standard-Enumerations.html#GTK-SELECTION-MULTIPLE:CAPS"><span class="type">GTK_SELECTION_MULTIPLE</span></a> mode.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start_path</code></em>&#160;:</span></td>
<td> The initial node of the range.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end_path</code></em>&#160;:</span></td>
<td> The final node of the range.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3100962"></a><h3>
<a name="gtk-tree-selection-unselect-range"></a>gtk_tree_selection_unselect_range ()</h3>
<a class="indexterm" name="id3100979"></a><pre class="programlisting">void        gtk_tree_selection_unselect_range
                                            (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *selection,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *start_path,
                                             <a href="GtkTreeModel.html#GtkTreePath">GtkTreePath</a> *end_path);</pre>
<p>
Unselects a range of nodes, determined by <em class="parameter"><code>start_path</code></em> and <em class="parameter"><code>end_path</code></em>
inclusive.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeSelection.html" title="GtkTreeSelection"><span class="type">GtkTreeSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start_path</code></em>&#160;:</span></td>
<td> The initial node of the range.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end_path</code></em>&#160;:</span></td>
<td> The initial node of the range.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3101099"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3101109"></a><h3>
<a name="GtkTreeSelection-changed"></a>The "changed" signal</h3>
<a class="indexterm" name="id3101120"></a><pre class="programlisting">void        user_function                  (<a href="GtkTreeSelection.html" title="GtkTreeSelection">GtkTreeSelection</a> *treeselection,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)          : Run first</pre>
<p>
Emitted whenever the selection has (possibly) changed.  Please note that
this signal is mostly a hint.  It may only be emitted once when a range
of rows are selected, and it may occasionally be emitted when nothing
has happened.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>treeselection</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3101195"></a><h2>See Also</h2>
<p>
<a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, <a href="GtkTreeViewColumn.html" title="GtkTreeViewColumn"><span class="type">GtkTreeViewColumn</span></a>, <span class="type">GtkTreeDnd</span>, <span class="type">GtkTreeMode</span>, <a href="GtkTreeSortable.html" title="GtkTreeSortable"><span class="type">GtkTreeSortable</span></a>, <a href="GtkTreeModelSort.html" title="GtkTreeModelSort"><span class="type">GtkTreeModelSort</span></a>, <a href="GtkListStore.html" title="GtkListStore"><span class="type">GtkListStore</span></a>, <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>, <a href="GtkCellRenderer.html" title="GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>, <a href="GtkCellEditable.html" title="GtkCellEditable"><span class="type">GtkCellEditable</span></a>, <a href="GtkCellRendererPixbuf.html" title="GtkCellRendererPixbuf"><span class="type">GtkCellRendererPixbuf</span></a>, <a href="GtkCellRendererText.html" title="GtkCellRendererText"><span class="type">GtkCellRendererText</span></a>, <a href="GtkCellRendererToggle.html" title="GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>
</p>
</div>
</div>
</body>
</html>

Anon7 - 2021