Commit e6b9f291 authored by 5's avatar 5 Committed by Jonathan Blandford

Fix GtkTreeNode *node ->GtkTreeNode node issue.

2000-10-15    <jrb@redhat.com>

	* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
	gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
	gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
	gtk/gtktreemodel.h, gtk/gtktreeselection.c,
	gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
	issue.
parent 3cd1330d
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
2000-10-15 <jrb@redhat.com>
* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
gtk/gtktreemodel.h, gtk/gtktreeselection.c,
gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
issue.
2000-10-14 Robert Brady <robert@suse.co.uk>
* configure.in: Added "fa" (Persian) to ALL_LINGUAS.
......
......@@ -256,7 +256,7 @@ gtk_list_store_node_next (GtkTreeModel *tree_model,
if (node == NULL || *node == NULL)
return FALSE;
*node = (GtkTreeNode *) G_SLIST (*node)->next;
*node = (GtkTreeNode) G_SLIST (*node)->next;
return (*node != NULL);
}
......@@ -285,7 +285,7 @@ gtk_list_store_node_n_children (GtkTreeModel *tree_model,
static GtkTreeNode
gtk_list_store_node_nth_child (GtkTreeModel *tree_model,
GtkTreeNode node,
gint n)
gint n)
{
return NULL;
}
......@@ -298,10 +298,10 @@ gtk_list_store_node_parent (GtkTreeModel *tree_model,
}
/* Public accessors */
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_new (void)
{
GtkTreeNode *retval = (GtkTreeNode *) g_slist_alloc ();
GtkTreeNode retval = (GtkTreeNode) g_slist_alloc ();
return retval;
}
......@@ -311,7 +311,7 @@ gtk_list_store_node_new (void)
*/
void
gtk_list_store_node_set_cell (GtkListStore *list_store,
GtkTreeNode *node,
GtkTreeNode node,
gint column,
GValue *value)
{
......@@ -361,15 +361,16 @@ gtk_list_store_node_set_cell (GtkListStore *list_store,
void
gtk_list_store_node_remove (GtkListStore *list_store,
GtkTreeNode *node)
GtkTreeNode node)
{
/* FIXME: implement */
g_warning ("Remember to implement this function\n");
}
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_insert (GtkListStore *list_store,
gint position,
GtkTreeNode *node)
GtkTreeNode node)
{
GSList *list;
......@@ -396,10 +397,10 @@ gtk_list_store_node_insert (GtkListStore *list_store,
}
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_insert_before (GtkListStore *list_store,
GtkTreeNode *sibling,
GtkTreeNode *node)
GtkTreeNode sibling,
GtkTreeNode node)
{
g_return_val_if_fail (list_store != NULL, node);
g_return_val_if_fail (GTK_IS_LIST_STORE (list_store), node);
......@@ -414,9 +415,9 @@ gtk_list_store_node_insert_before (GtkListStore *list_store,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_prepend (GtkListStore *list_store,
GtkTreeNode *node)
GtkTreeNode node)
{
g_return_val_if_fail (list_store != NULL, node);
g_return_val_if_fail (GTK_IS_LIST_STORE (list_store), node);
......@@ -428,9 +429,9 @@ gtk_list_store_node_prepend (GtkListStore *list_store,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_append (GtkListStore *list_store,
GtkTreeNode *node)
GtkTreeNode node)
{
GSList *list;
......@@ -448,7 +449,7 @@ gtk_list_store_node_append (GtkListStore *list_store,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_list_store_node_get_root (GtkListStore *list_store)
{
g_return_val_if_fail (list_store != NULL, NULL);
......
......@@ -40,7 +40,7 @@ struct _GtkListStore
GtkTreeModel parent;
/*< private >*/
GtkTreeNode *root;
GtkTreeNode root;
gint n_columns;
GType *column_headers;
};
......@@ -52,31 +52,31 @@ struct _GtkListStoreClass
GtkType gtk_list_store_get_type (void);
GtkObject *gtk_list_store_new (void);
GtkObject *gtk_list_store_new_with_types (gint n_columns,
GtkObject *gtk_list_store_new_with_types (gint n_columns,
...);
void gtk_list_store_set_n_columns (GtkListStore *store,
gint n_columns);
void gtk_list_store_set_column_type (GtkListStore *store,
gint column,
GType type);
void gtk_list_store_set_n_columns (GtkListStore *store,
gint n_columns);
void gtk_list_store_set_column_type (GtkListStore *store,
gint column,
GType type);
GtkTreeNode gtk_list_store_node_new (void);
void gtk_list_store_node_set_cell (GtkListStore *store,
GtkTreeNode node,
gint column,
GValue *value);
void gtk_list_store_node_remove (GtkListStore *store,
GtkTreeNode node);
GtkTreeNode gtk_list_store_node_insert (GtkListStore *store,
gint position,
GtkTreeNode node);
GtkTreeNode gtk_list_store_node_insert_before (GtkListStore *store,
GtkTreeNode sibling,
GtkTreeNode node);
GtkTreeNode gtk_list_store_node_prepend (GtkListStore *store,
GtkTreeNode node);
GtkTreeNode gtk_list_store_node_append (GtkListStore *store,
GtkTreeNode node);
GtkTreeNode *gtk_list_store_node_new (void);
void gtk_list_store_node_set_cell (GtkListStore *store,
GtkTreeNode *node,
gint column,
GValue *value);
void gtk_list_store_node_remove (GtkListStore *store,
GtkTreeNode *node);
GtkTreeNode *gtk_list_store_node_insert (GtkListStore *store,
gint position,
GtkTreeNode *node);
GtkTreeNode *gtk_list_store_node_insert_before (GtkListStore *store,
GtkTreeNode *sibling,
GtkTreeNode *node);
GtkTreeNode *gtk_list_store_node_prepend (GtkListStore *store,
GtkTreeNode *node);
GtkTreeNode *gtk_list_store_node_append (GtkListStore *store,
GtkTreeNode *node);
#ifdef __cplusplus
......
......@@ -307,8 +307,8 @@ gtk_real_model_simple_get_path (GtkTreeModel *tree_model,
static void
gtk_real_model_simple_node_get_value (GtkTreeModel *tree_model,
GtkTreeNode node,
gint column,
GValue *value)
gint column,
GValue *value)
{
gtk_signal_emit (GTK_OBJECT (tree_model), model_simple_signals[NODE_GET_VALUE], node, column, value);
}
......@@ -360,7 +360,7 @@ gtk_real_model_simple_node_n_children (GtkTreeModel *tree_model,
static GtkTreeNode
gtk_real_model_simple_node_nth_child (GtkTreeModel *tree_model,
GtkTreeNode node,
gint n)
gint n)
{
GtkTreeNode retval = NULL;
......@@ -383,48 +383,48 @@ gtk_real_model_simple_node_parent (GtkTreeModel *tree_model,
/* Public functions */
void
gtk_model_simple_node_changed (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node)
GtkTreePath *path,
GtkTreeNode node)
{
g_return_if_fail (simple != NULL);
g_return_if_fail (GTK_IS_MODEL_SIMPLE (simple));
g_return_if_fail (path != NULL);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_changed", path, tree_node);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_changed", path, node);
}
void
gtk_model_simple_node_inserted (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node)
GtkTreeNode node)
{
g_return_if_fail (simple != NULL);
g_return_if_fail (GTK_IS_MODEL_SIMPLE (simple));
g_return_if_fail (path != NULL);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_inserted", path, tree_node);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_inserted", path, node);
}
void
gtk_model_simple_node_child_toggled (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node)
GtkTreeNode node)
{
g_return_if_fail (simple != NULL);
g_return_if_fail (GTK_IS_MODEL_SIMPLE (simple));
g_return_if_fail (path != NULL);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_child_toggled", path, tree_node);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_child_toggled", path, node);
}
void
gtk_model_simple_node_deleted (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node)
GtkTreeNode node)
{
g_return_if_fail (simple != NULL);
g_return_if_fail (GTK_IS_MODEL_SIMPLE (simple));
g_return_if_fail (path != NULL);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_deleted", path, tree_node);
gtk_signal_emit_by_name (GTK_OBJECT (simple), "node_deleted", path, node);
}
......@@ -52,16 +52,16 @@ GtkObject *gtk_model_simple_new (void);
void gtk_model_simple_node_changed (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node);
GtkTreeNode node);
void gtk_model_simple_node_inserted (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node);
GtkTreeNode node);
void gtk_model_simple_node_child_toggled (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node);
GtkTreeNode node);
void gtk_model_simple_node_deleted (GtkModelSimple *simple,
GtkTreePath *path,
GtkTreeNode *tree_node);
GtkTreeNode node);
......
......@@ -19,6 +19,7 @@
#include "gtktreedatalist.h"
#include "gobject/gvalue.h"
#include "gobject/gvaluetypes.h"
/* node allocation
*/
......
......@@ -50,13 +50,13 @@ struct _GtkTreeModelClass
/* signals */
void (* node_changed) (GtkTreeModel *tree_model,
GtkTreePath *path,
GtkTreeNode *node);
GtkTreeNode node);
void (* node_inserted) (GtkTreeModel *tree_model,
GtkTreePath *path,
GtkTreeNode *node);
GtkTreeNode node);
void (* node_child_toggled) (GtkTreeModel *tree_model,
GtkTreePath *path,
GtkTreeNode *node);
GtkTreeNode node);
void (* node_deleted) (GtkTreeModel *tree_model,
GtkTreePath *path);
......
......@@ -184,7 +184,7 @@ gtk_tree_selection_get_user_data (GtkTreeSelection *selection)
return selection->user_data;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_selection_get_selected (GtkTreeSelection *selection)
{
GtkTreeNode *retval;
......@@ -355,7 +355,7 @@ gtk_tree_selection_unselect_path (GtkTreeSelection *selection,
void
gtk_tree_selection_select_node (GtkTreeSelection *selection,
GtkTreeNode *tree_node)
GtkTreeNode tree_node)
{
GtkTreePath *path;
......@@ -377,7 +377,7 @@ gtk_tree_selection_select_node (GtkTreeSelection *selection,
void
gtk_tree_selection_unselect_node (GtkTreeSelection *selection,
GtkTreeNode *tree_node)
GtkTreeNode tree_node)
{
GtkTreePath *path;
......@@ -404,7 +404,7 @@ struct _TempTuple {
static void
select_all_helper (GtkRBTree *tree,
GtkRBNode *node,
gpointer data)
gpointer data)
{
struct _TempTuple *tuple = data;
......@@ -493,7 +493,7 @@ gtk_tree_selection_select_all (GtkTreeSelection *selection)
static void
unselect_all_helper (GtkRBTree *tree,
GtkRBNode *node,
gpointer data)
gpointer data)
{
struct _TempTuple *tuple = data;
......
......@@ -45,7 +45,7 @@ typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection,
GtkTreePath *path,
gpointer data);
typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model,
GtkTreeNode *node,
GtkTreeNode node,
gpointer data);
struct _GtkTreeSelection
......@@ -78,7 +78,8 @@ gpointer gtk_tree_selection_get_user_data (GtkTreeSelection
/* Only meaningful if GTK_TREE_SELECTION_SINGLE is set */
/* Use selected_foreach for GTK_TREE_SELECTION_MULTI */
GtkTreeNode *gtk_tree_selection_get_selected (GtkTreeSelection *selection);
GtkTreeNode gtk_tree_selection_get_selected (GtkTreeSelection *selection);
/* FIXME: Get a more convenient get_selection function???? one returning GSList?? */
void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection,
GtkTreeSelectionForeachFunc func,
......@@ -88,9 +89,9 @@ void gtk_tree_selection_select_path (GtkTreeSelection
void gtk_tree_selection_unselect_path (GtkTreeSelection *selection,
GtkTreePath *path);
void gtk_tree_selection_select_node (GtkTreeSelection *selection,
GtkTreeNode *tree_node);
GtkTreeNode tree_node);
void gtk_tree_selection_unselect_node (GtkTreeSelection *selection,
GtkTreeNode *tree_node);
GtkTreeNode tree_node);
void gtk_tree_selection_select_all (GtkTreeSelection *selection);
void gtk_tree_selection_unselect_all (GtkTreeSelection *selection);
void gtk_tree_selection_select_range (GtkTreeSelection *selection,
......@@ -103,6 +104,7 @@ GtkObject *gtk_tree_selection_new_with_tree_view (GtkTreeView
void gtk_tree_selection_set_tree_view (GtkTreeSelection *selection,
GtkTreeView *tree_view);
#ifdef __cplusplus
}
#endif /* __cplusplus */
......
......@@ -198,16 +198,16 @@ gtk_tree_store_get_node (GtkTreeModel *tree_model,
GtkTreePath *path)
{
gint i;
GtkTreeNode *node;
GtkTreeNode node;
gint *indices = gtk_tree_path_get_indices (path);
node = GTK_TREE_STORE (tree_model)->root;
for (i = 0; i < gtk_tree_path_get_depth (path); i ++)
{
node = (GtkTreeNode *) gtk_tree_store_node_nth_child (tree_model,
(GtkTreeNode *) node,
indices[i]);
node = (GtkTreeNode) gtk_tree_store_node_nth_child (tree_model,
(GtkTreeNode) node,
indices[i]);
if (node == NULL)
return NULL;
};
......@@ -301,7 +301,7 @@ gtk_tree_store_node_next (GtkTreeModel *tree_model,
if (node == NULL || *node == NULL)
return FALSE;
*node = (GtkTreeNode *) G_NODE (*node)->next;
*node = (GtkTreeNode) G_NODE (*node)->next;
return (*node != NULL);
}
......@@ -325,11 +325,11 @@ gtk_tree_store_node_n_children (GtkTreeModel *tree_model,
{
gint i = 0;
node = (GtkTreeNode *) G_NODE (node)->children;
node = (GtkTreeNode) G_NODE (node)->children;
while (node != NULL)
{
i++;
node = (GtkTreeNode *) G_NODE (node)->next;
node = (GtkTreeNode) G_NODE (node)->next;
}
return i;
......@@ -342,7 +342,7 @@ gtk_tree_store_node_nth_child (GtkTreeModel *tree_model,
{
g_return_val_if_fail (node != NULL, NULL);
return (GtkTreeNode *) g_node_nth_child (G_NODE (node), n);
return (GtkTreeNode) g_node_nth_child (G_NODE (node), n);
}
static GtkTreeNode
......@@ -353,12 +353,12 @@ gtk_tree_store_node_parent (GtkTreeModel *tree_model,
}
/* Public accessors */
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_new (void)
{
GtkTreeNode *retval;
GtkTreeNode retval;
retval = (GtkTreeNode *) g_node_new (NULL);
retval = (GtkTreeNode) g_node_new (NULL);
return retval;
}
......@@ -368,7 +368,7 @@ gtk_tree_store_node_new (void)
*/
void
gtk_tree_store_node_set_cell (GtkTreeStore *tree_store,
GtkTreeNode *node,
GtkTreeNode node,
gint column,
GValue *value)
{
......@@ -418,7 +418,7 @@ gtk_tree_store_node_set_cell (GtkTreeStore *tree_store,
void
gtk_tree_store_node_remove (GtkTreeStore *model,
GtkTreeNode *node)
GtkTreeNode node)
{
GtkTreePath *path;
GNode *parent;
......@@ -446,11 +446,11 @@ gtk_tree_store_node_remove (GtkTreeStore *model,
gtk_tree_path_free (path);
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_insert (GtkTreeStore *model,
GtkTreeNode *parent,
GtkTreeNode parent,
gint position,
GtkTreeNode *node)
GtkTreeNode node)
{
GtkTreePath *path;
......@@ -472,11 +472,11 @@ gtk_tree_store_node_insert (GtkTreeStore *model,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_insert_before (GtkTreeStore *model,
GtkTreeNode *parent,
GtkTreeNode *sibling,
GtkTreeNode *node)
GtkTreeNode parent,
GtkTreeNode sibling,
GtkTreeNode node)
{
GtkTreePath *path;
......@@ -488,7 +488,7 @@ gtk_tree_store_node_insert_before (GtkTreeStore *model,
parent = model->root;
if (parent == NULL)
parent = (GtkTreeNode *) G_NODE (sibling)->parent;
parent = (GtkTreeNode) G_NODE (sibling)->parent;
g_node_insert_before (G_NODE (parent), G_NODE (sibling), G_NODE (node));
......@@ -501,11 +501,11 @@ gtk_tree_store_node_insert_before (GtkTreeStore *model,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_insert_after (GtkTreeStore *model,
GtkTreeNode *parent,
GtkTreeNode *sibling,
GtkTreeNode *node)
GtkTreeNode parent,
GtkTreeNode sibling,
GtkTreeNode node)
{
GtkTreePath *path;
......@@ -517,7 +517,7 @@ gtk_tree_store_node_insert_after (GtkTreeStore *model,
parent = model->root;
if (parent == NULL)
parent = (GtkTreeNode *) G_NODE (sibling)->parent;
parent = (GtkTreeNode) G_NODE (sibling)->parent;
g_node_insert_after (G_NODE (parent), G_NODE (sibling), G_NODE (node));
......@@ -529,10 +529,10 @@ gtk_tree_store_node_insert_after (GtkTreeStore *model,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_prepend (GtkTreeStore *model,
GtkTreeNode *parent,
GtkTreeNode *node)
GtkTreeNode parent,
GtkTreeNode node)
{
g_return_val_if_fail (model != NULL, node);
g_return_val_if_fail (GTK_IS_TREE_STORE (model), node);
......@@ -574,10 +574,10 @@ gtk_tree_store_node_prepend (GtkTreeStore *model,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_append (GtkTreeStore *model,
GtkTreeNode *parent,
GtkTreeNode *node)
GtkTreeNode parent,
GtkTreeNode node)
{
g_return_val_if_fail (model != NULL, node);
g_return_val_if_fail (GTK_IS_TREE_STORE (model), node);
......@@ -619,20 +619,20 @@ gtk_tree_store_node_append (GtkTreeStore *model,
return node;
}
GtkTreeNode *
GtkTreeNode
gtk_tree_store_node_get_root (GtkTreeStore *model)
{
g_return_val_if_fail (model != NULL, NULL);
g_return_val_if_fail (GTK_IS_TREE_STORE (model), NULL);
return (GtkTreeNode *) model->root;
return (GtkTreeNode) model->root;
}
gboolean
gtk_tree_store_node_is_ancestor (GtkTreeStore *model,
GtkTreeNode *node,
GtkTreeNode *descendant)