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/GtkTreeStore.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>GtkTreeStore</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="GtkListStore.html" title="GtkListStore">
<link rel="next" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<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="GtkListStore.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="MenusAndCombos.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="#id3247264" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3248213" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3248144" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id3248169" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkTreeStore"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3247264"></a><span class="refentrytitle">GtkTreeStore</span>
</h2>
<p>GtkTreeStore &#8212; A tree-like data structure that can be used with the <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="GtkTreeStore.html#GtkTreeStore-struct">GtkTreeStore</a>;
<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a>* <a href="GtkTreeStore.html#gtk-tree-store-new">gtk_tree_store_new</a>            (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             ...);
<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a>* <a href="GtkTreeStore.html#gtk-tree-store-newv">gtk_tree_store_newv</a>           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> *types);
void        <a href="GtkTreeStore.html#gtk-tree-store-set-column-types">gtk_tree_store_set_column_types</a> (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> *types);
void        <a href="GtkTreeStore.html#gtk-tree-store-set-value">gtk_tree_store_set_value</a>        (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> column,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void        <a href="GtkTreeStore.html#gtk-tree-store-set">gtk_tree_store_set</a>              (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             ...);
void        <a href="GtkTreeStore.html#gtk-tree-store-set-valist">gtk_tree_store_set_valist</a>       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             va_list var_args);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeStore.html#gtk-tree-store-remove">gtk_tree_store_remove</a>           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeStore.html#gtk-tree-store-insert">gtk_tree_store_insert</a>           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);
void        <a href="GtkTreeStore.html#gtk-tree-store-insert-before">gtk_tree_store_insert_before</a>    (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *sibling);
void        <a href="GtkTreeStore.html#gtk-tree-store-insert-after">gtk_tree_store_insert_after</a>     (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *sibling);
void        <a href="GtkTreeStore.html#gtk-tree-store-insert-with-values">gtk_tree_store_insert_with_values</a>
                                            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position,
                                             ...);
void        <a href="GtkTreeStore.html#gtk-tree-store-insert-with-valuesv">gtk_tree_store_insert_with_valuesv</a>
                                            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *columns,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *values,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_values);
void        <a href="GtkTreeStore.html#gtk-tree-store-prepend">gtk_tree_store_prepend</a>          (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent);
void        <a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a>           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeStore.html#gtk-tree-store-is-ancestor">gtk_tree_store_is_ancestor</a>      (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *descendant);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        <a href="GtkTreeStore.html#gtk-tree-store-iter-depth">gtk_tree_store_iter_depth</a>       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeStore.html#gtk-tree-store-clear">gtk_tree_store_clear</a>            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkTreeStore.html#gtk-tree-store-iter-is-valid">gtk_tree_store_iter_is_valid</a>    (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);
void        <a href="GtkTreeStore.html#gtk-tree-store-reorder">gtk_tree_store_reorder</a>          (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *new_order);
void        <a href="GtkTreeStore.html#gtk-tree-store-swap">gtk_tree_store_swap</a>             (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *a,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *b);
void        <a href="GtkTreeStore.html#gtk-tree-store-move-before">gtk_tree_store_move_before</a>      (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);
void        <a href="GtkTreeStore.html#gtk-tree-store-move-after">gtk_tree_store_move_after</a>       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);


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

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GtkTreeStore
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3248169"></a><h2>Implemented Interfaces</h2>
<p>
GtkTreeStore implements
 <a href="GtkTreeModel.html" title="GtkTreeModel">GtkTreeModel</a>,  <a href="gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragSource">GtkTreeDragSource</a>,  <a href="gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragDest">GtkTreeDragDest</a> and  <a href="GtkTreeSortable.html" title="GtkTreeSortable">GtkTreeSortable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3248213"></a><h2>Description</h2>
<p>
The <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a> object is a list model for use with a <a href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>
widget.  It implements the <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> interface, and consequentialy,
can use all of the methods available there.  It also implements the
<a href="GtkTreeSortable.html" title="GtkTreeSortable"><span class="type">GtkTreeSortable</span></a> interface so it can be sorted by the view.  Finally,
it also implements the tree drag and
drop interfaces.

</p>
</div>
<div class="refsect1" lang="en">
<a name="id3248272"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3248282"></a><h3>
<a name="GtkTreeStore-struct"></a>GtkTreeStore</h3>
<a class="indexterm" name="id3248294"></a><pre class="programlisting">typedef struct _GtkTreeStore GtkTreeStore;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3248310"></a><h3>
<a name="gtk-tree-store-new"></a>gtk_tree_store_new ()</h3>
<a class="indexterm" name="id3248323"></a><pre class="programlisting"><a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a>* gtk_tree_store_new            (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             ...);</pre>
<p>
Creates a new tree store as with <em class="parameter"><code>n_columns</code></em> columns each of the types passed
in.  Note that only types derived from standard GObject fundamental types 
are supported. 
</p>
<p>
As an example, <code class="literal">gtk_tree_store_new (3, G_TYPE_INT, G_TYPE_STRING,
GDK_TYPE_PIXBUF);</code> will create a new <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a> with three columns, of type
<span class="type">int</span>, <span class="type">string</span> and <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
><span class="type">GdkPixbuf</span></a> respectively.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_columns</code></em>&#160;:</span></td>
<td> number of columns in the tree store
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> all <a
href="../gobject/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> types for the columns, from first to last
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3248458"></a><h3>
<a name="gtk-tree-store-newv"></a>gtk_tree_store_newv ()</h3>
<a class="indexterm" name="id3248471"></a><pre class="programlisting"><a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a>* gtk_tree_store_newv           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> *types);</pre>
<p>
Non vararg creation function.  Used primarily by language bindings.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_columns</code></em>&#160;:</span></td>
<td> number of columns in the tree store
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>types</code></em>&#160;:</span></td>
<td> an array of <a
href="../gobject/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> types for the columns, from first to last
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3248571"></a><h3>
<a name="gtk-tree-store-set-column-types"></a>gtk_tree_store_set_column_types ()</h3>
<a class="indexterm" name="id3248585"></a><pre class="programlisting">void        gtk_tree_store_set_column_types (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_columns,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> *types);</pre>
<p>
This function is meant primarily for <span class="type">GObjects</span> that inherit from 
<a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>, and should only be used when constructing a new 
<a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.  It will not function after a row has been added, 
or a method on the <a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> interface is called.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_columns</code></em>&#160;:</span></td>
<td> Number of columns for the tree store
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>types</code></em>&#160;:</span></td>
<td> An array of <a
href="../gobject/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> types, one for each column
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3248731"></a><h3>
<a name="gtk-tree-store-set-value"></a>gtk_tree_store_set_value ()</h3>
<a class="indexterm" name="id3248744"></a><pre class="programlisting">void        gtk_tree_store_set_value        (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> column,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Sets the data in the cell specified by <em class="parameter"><code>iter</code></em> and <em class="parameter"><code>column</code></em>.
The type of <em class="parameter"><code>value</code></em> must be convertible to the type of the
column.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> a <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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> for the row being modified
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>column</code></em>&#160;:</span></td>
<td> column number to modify
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td> new value for the cell
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3248895"></a><h3>
<a name="gtk-tree-store-set"></a>gtk_tree_store_set ()</h3>
<a class="indexterm" name="id3248908"></a><pre class="programlisting">void        gtk_tree_store_set              (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             ...);</pre>
<p>
Sets the value of one or more cells in the row referenced by <em class="parameter"><code>iter</code></em>.
The variable argument list should contain integer column numbers,
each column number followed by the value to be set. 
The list is terminated by a -1. For example, to set column 0 with type
<a
href="../gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a> to "Foo", you would write 
<code class="literal">gtk_tree_store_set (store, iter, 0, "Foo", -1)</code>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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> for the row being modified
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> pairs of column number and value, terminated with -1
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3249038"></a><h3>
<a name="gtk-tree-store-set-valist"></a>gtk_tree_store_set_valist ()</h3>
<a class="indexterm" name="id3249052"></a><pre class="programlisting">void        gtk_tree_store_set_valist       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             va_list var_args);</pre>
<p>
See <a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a>; this version takes a <span class="type">va_list</span> for
use by language bindings.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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> for the row being modified
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>var_args</code></em>&#160;:</span></td>
<td> <span class="type">va_list</span> of column/value pairs
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3249180"></a><h3>
<a name="gtk-tree-store-remove"></a>gtk_tree_store_remove ()</h3>
<a class="indexterm" name="id3249193"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_store_remove           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Removes <em class="parameter"><code>iter</code></em> from <em class="parameter"><code>tree_store</code></em>.  After being removed, <em class="parameter"><code>iter</code></em> is set to the
next valid row at that level, or invalidated if it previously pointed to the
last one.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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 still valid, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if not.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3249337"></a><h3>
<a name="gtk-tree-store-insert"></a>gtk_tree_store_insert ()</h3>
<a class="indexterm" name="id3249350"></a><pre class="programlisting">void        gtk_tree_store_insert           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position);</pre>
<p>
Creates a new row at <em class="parameter"><code>position</code></em>.  If parent is non-<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then the row will be
made a child of <em class="parameter"><code>parent</code></em>.  Otherwise, the row will be created at the toplevel.
If <em class="parameter"><code>position</code></em> is larger than the number of rows at that level, then the new
row will be inserted to the end of the list.  <em class="parameter"><code>iter</code></em> will be changed to point
to this new row.  The row will be empty after this function is called.  To
fill in values, you need to call <a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a> or
<a href="GtkTreeStore.html#gtk-tree-store-set-value"><code class="function">gtk_tree_store_set_value()</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the new row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> position to insert the new row
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3249561"></a><h3>
<a name="gtk-tree-store-insert-before"></a>gtk_tree_store_insert_before ()</h3>
<a class="indexterm" name="id3249574"></a><pre class="programlisting">void        gtk_tree_store_insert_before    (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *sibling);</pre>
<p>
Inserts a new row before <em class="parameter"><code>sibling</code></em>.  If <em class="parameter"><code>sibling</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then the row will
be appended to <em class="parameter"><code>parent</code></em> 's children.  If <em class="parameter"><code>parent</code></em> and <em class="parameter"><code>sibling</code></em> are <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then
the row will be appended to the toplevel.  If both <em class="parameter"><code>sibling</code></em> and <em class="parameter"><code>parent</code></em> are
set, then <em class="parameter"><code>parent</code></em> must be the parent of <em class="parameter"><code>sibling</code></em>.  When <em class="parameter"><code>sibling</code></em> is set,
<em class="parameter"><code>parent</code></em> is optional.
</p>
<p>
<em class="parameter"><code>iter</code></em> will be changed to point to this new row.  The row will be empty after
this function is called.  To fill in values, you need to call
<a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a> or <a href="GtkTreeStore.html#gtk-tree-store-set-value"><code class="function">gtk_tree_store_set_value()</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the new row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>sibling</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3249863"></a><h3>
<a name="gtk-tree-store-insert-after"></a>gtk_tree_store_insert_after ()</h3>
<a class="indexterm" name="id3249877"></a><pre class="programlisting">void        gtk_tree_store_insert_after     (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *sibling);</pre>
<p>
Inserts a new row after <em class="parameter"><code>sibling</code></em>.  If <em class="parameter"><code>sibling</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then the row will be
prepended to <em class="parameter"><code>parent</code></em> 's children.  If <em class="parameter"><code>parent</code></em> and <em class="parameter"><code>sibling</code></em> are <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then
the row will be prepended to the toplevel.  If both <em class="parameter"><code>sibling</code></em> and <em class="parameter"><code>parent</code></em> are
set, then <em class="parameter"><code>parent</code></em> must be the parent of <em class="parameter"><code>sibling</code></em>.  When <em class="parameter"><code>sibling</code></em> is set,
<em class="parameter"><code>parent</code></em> is optional.
</p>
<p>
<em class="parameter"><code>iter</code></em> will be changed to point to this new row.  The row will be empty after
this function is called.  To fill in values, you need to call
<a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a> or <a href="GtkTreeStore.html#gtk-tree-store-set-value"><code class="function">gtk_tree_store_set_value()</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the new row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>sibling</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3250165"></a><h3>
<a name="gtk-tree-store-insert-with-values"></a>gtk_tree_store_insert_with_values ()</h3>
<a class="indexterm" name="id3250181"></a><pre class="programlisting">void        gtk_tree_store_insert_with_values
                                            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position,
                                             ...);</pre>
<p>
Creates a new row at <em class="parameter"><code>position</code></em>.  <em class="parameter"><code>iter</code></em> will be changed to point to this
new row.  If <em class="parameter"><code>position</code></em> is larger than the number of rows on the list, then
the new row will be appended to the list.  The row will be filled with
the values given to this function.
</p>
<p>
Calling
<code class="literal">gtk_tree_store_insert_with_values (tree_store, iter, position, ...)</code>
has the same effect as calling
</p>
<div class="informalexample"><pre class="programlisting">
gtk_tree_store_insert (tree_store, iter, position);
gtk_tree_store_set (tree_store, iter, ...);
</pre></div>
<p>
with the different that the former will only emit a row_inserted signal,
while the latter will emit row_inserted, row_changed and if the tree store
is sorted, rows_reordered.  Since emitting the rows_reordered signal
repeatedly can affect the performance of the program,
<a href="GtkTreeStore.html#gtk-tree-store-insert-with-values"><code class="function">gtk_tree_store_insert_with_values()</code></a> should generally be preferred when
inserting rows in a sorted tree store.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set the new row, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> position to insert the new row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> pairs of column number and value, terminated with -1
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3250418"></a><h3>
<a name="gtk-tree-store-insert-with-valuesv"></a>gtk_tree_store_insert_with_valuesv ()</h3>
<a class="indexterm" name="id3250435"></a><pre class="programlisting">void        gtk_tree_store_insert_with_valuesv
                                            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> position,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *columns,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *values,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_values);</pre>
<p>
A variant of <a href="GtkTreeStore.html#gtk-tree-store-insert-with-values"><code class="function">gtk_tree_store_insert_with_values()</code></a> which takes
the columns and values as two arrays, instead of varargs.  This
function is mainly intended for language bindings.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set the new row, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> position to insert the new row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>columns</code></em>&#160;:</span></td>
<td> an array of column numbers
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>values</code></em>&#160;:</span></td>
<td> an array of GValues
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_values</code></em>&#160;:</span></td>
<td> the length of the <em class="parameter"><code>columns</code></em> and <em class="parameter"><code>values</code></em> arrays
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3250690"></a><h3>
<a name="gtk-tree-store-prepend"></a>gtk_tree_store_prepend ()</h3>
<a class="indexterm" name="id3250703"></a><pre class="programlisting">void        gtk_tree_store_prepend          (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent);</pre>
<p>
Prepends a new row to <em class="parameter"><code>tree_store</code></em>.  If <em class="parameter"><code>parent</code></em> is non-<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then it will prepend
the new row before the first child of <em class="parameter"><code>parent</code></em>, otherwise it will prepend a row
to the top level.  <em class="parameter"><code>iter</code></em> will be changed to point to this new row.  The row
will be empty after this function is called.  To fill in values, you need to
call <a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a> or <a href="GtkTreeStore.html#gtk-tree-store-set-value"><code class="function">gtk_tree_store_set_value()</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the prepended row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3250891"></a><h3>
<a name="gtk-tree-store-append"></a>gtk_tree_store_append ()</h3>
<a class="indexterm" name="id3250904"></a><pre class="programlisting">void        gtk_tree_store_append           (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent);</pre>
<p>
Appends a new row to <em class="parameter"><code>tree_store</code></em>.  If <em class="parameter"><code>parent</code></em> is non-<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, then it will append the
new row after the last child of <em class="parameter"><code>parent</code></em>, otherwise it will append a row to
the top level.  <em class="parameter"><code>iter</code></em> will be changed to point to this new row.  The row will
be empty after this function is called.  To fill in values, you need to call
<a href="GtkTreeStore.html#gtk-tree-store-set"><code class="function">gtk_tree_store_set()</code></a> or <a href="GtkTreeStore.html#gtk-tree-store-set-value"><code class="function">gtk_tree_store_set_value()</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></td>
<td> An unset <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> to set to the appended row
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A valid <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251091"></a><h3>
<a name="gtk-tree-store-is-ancestor"></a>gtk_tree_store_is_ancestor ()</h3>
<a class="indexterm" name="id3251105"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_store_is_ancestor      (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *descendant);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> is an ancestor of <em class="parameter"><code>descendant</code></em>.  That is, <em class="parameter"><code>iter</code></em> is the
parent (or grandparent or great-grandparent) of <em class="parameter"><code>descendant</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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"><em class="parameter"><code>descendant</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 an ancestor of <em class="parameter"><code>descendant</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251288"></a><h3>
<a name="gtk-tree-store-iter-depth"></a>gtk_tree_store_iter_depth ()</h3>
<a class="indexterm" name="id3251302"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        gtk_tree_store_iter_depth       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
Returns the depth of <em class="parameter"><code>iter</code></em>.  This will be 0 for anything on the root level, 1
for anything down a level, etc.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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> The depth of <em class="parameter"><code>iter</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251412"></a><h3>
<a name="gtk-tree-store-clear"></a>gtk_tree_store_clear ()</h3>
<a class="indexterm" name="id3251425"></a><pre class="programlisting">void        gtk_tree_store_clear            (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store);</pre>
<p>
Removes all rows from <em class="parameter"><code>tree_store</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>tree_store</code></em>&#160;:</span></td>
<td> a <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251488"></a><h3>
<a name="gtk-tree-store-iter-is-valid"></a>gtk_tree_store_iter_is_valid ()</h3>
<a class="indexterm" name="id3251504"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_tree_store_iter_is_valid    (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter);</pre>
<p>
WARNING: This function is slow. Only use it for debugging and/or testing
purposes.
</p>
<p>
Checks if the given iter is a valid iter for this <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</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>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.
</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>.
</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 iter is valid, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if the iter is invalid.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251641"></a><h3>
<a name="gtk-tree-store-reorder"></a>gtk_tree_store_reorder ()</h3>
<a class="indexterm" name="id3251656"></a><pre class="programlisting">void        gtk_tree_store_reorder          (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *parent,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *new_order);</pre>
<p>
Reorders the children of <em class="parameter"><code>parent</code></em> in <em class="parameter"><code>tree_store</code></em> to follow the order
indicated by <em class="parameter"><code>new_order</code></em>. Note that this function only works with
unsorted stores.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>new_order</code></em>&#160;:</span></td>
<td> an array of integers mapping the new position of each child
     to its old position before the re-ordering,
     i.e. <em class="parameter"><code>new_order</code></em><code class="literal">[newpos] = oldpos</code>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251801"></a><h3>
<a name="gtk-tree-store-swap"></a>gtk_tree_store_swap ()</h3>
<a class="indexterm" name="id3251817"></a><pre class="programlisting">void        gtk_tree_store_swap             (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *a,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *b);</pre>
<p>
Swaps <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em> in the same level of <em class="parameter"><code>tree_store</code></em>. Note that this function
only works with unsorted stores.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></td>
<td> Another <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3251955"></a><h3>
<a name="gtk-tree-store-move-before"></a>gtk_tree_store_move_before ()</h3>
<a class="indexterm" name="id3251971"></a><pre class="programlisting">void        gtk_tree_store_move_before      (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);</pre>
<p>
Moves <em class="parameter"><code>iter</code></em> in <em class="parameter"><code>tree_store</code></em> to the position before <em class="parameter"><code>position</code></em>. <em class="parameter"><code>iter</code></em> and
<em class="parameter"><code>position</code></em> should be in the same level. Note that this function only
works with unsorted stores. If <em class="parameter"><code>position</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, <em class="parameter"><code>iter</code></em> will be
moved to the end of the level.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.
</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>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3252155"></a><h3>
<a name="gtk-tree-store-move-after"></a>gtk_tree_store_move_after ()</h3>
<a class="indexterm" name="id3252171"></a><pre class="programlisting">void        gtk_tree_store_move_after       (<a href="GtkTreeStore.html" title="GtkTreeStore">GtkTreeStore</a> *tree_store,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *iter,
                                             <a href="GtkTreeModel.html#GtkTreeIter">GtkTreeIter</a> *position);</pre>
<p>
Moves <em class="parameter"><code>iter</code></em> in <em class="parameter"><code>tree_store</code></em> to the position after <em class="parameter"><code>position</code></em>. <em class="parameter"><code>iter</code></em> and
<em class="parameter"><code>position</code></em> should be in the same level. Note that this function only
works with unsorted stores. If <em class="parameter"><code>position</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, <em class="parameter"><code>iter</code></em> will be moved
to the start of the level.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>tree_store</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>.
</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>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> A <a href="GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3252346"></a><h2>See Also</h2>
<p>
<a href="GtkTreeModel.html" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, <a href="GtkTreeStore.html" title="GtkTreeStore"><span class="type">GtkTreeStore</span></a>
</p>
</div>
</div>
</body>
</html>

Anon7 - 2021