diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index ff1846495f..9d74162e5b 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -50,5 +50,6 @@ gtktoolbar.sgml gtktoolitem.sgml gtktooltip.sgml gtktreednd.sgml +gtktreestore.sgml gtktypeutils.sgml gtkwindow.sgml diff --git a/docs/reference/gtk/tmpl/gtktreestore.sgml b/docs/reference/gtk/tmpl/gtktreestore.sgml deleted file mode 100644 index efa84558c0..0000000000 --- a/docs/reference/gtk/tmpl/gtktreestore.sgml +++ /dev/null @@ -1,296 +0,0 @@ - -GtkTreeStore - - -A tree-like data structure that can be used with the GtkTreeView - - - -The #GtkTreeStore object is a list model for use with a #GtkTreeView -widget. It implements the #GtkTreeModel interface, and consequentialy, -can use all of the methods available there. It also implements the -#GtkTreeSortable interface so it can be sorted by the view. Finally, -it also implements the tree drag and -drop interfaces. - - - -GtkTreeStore as GtkBuildable - -The GtkTreeStore implementation of the GtkBuildable interface allows -to specify the model columns with a <columns> element that may -contain multiple <column> elements, each specifying one model -column. The "type" attribute specifies the data type for the column. - - -A UI Definition fragment for a tree store - - - - - - - -]]> - - - - - -#GtkTreeModel, #GtkTreeStore - - - - - - - - - - - - - - - - - - - -@n_columns: -@Varargs: -@Returns: - - - - - - - -@n_columns: -@types: -@Returns: - - - - - - - -@tree_store: -@n_columns: -@types: - - - - - - - -@tree_store: -@iter: -@column: -@value: - - - - - - - -@tree_store: -@iter: -@Varargs: - - - - - - - -@tree_store: -@iter: -@var_args: - - - - - - - -@tree_store: -@iter: -@columns: -@values: -@n_values: - - - - - - - -@tree_store: -@iter: -@Returns: - - - - - - - -@tree_store: -@iter: -@parent: -@position: - - - - - - - -@tree_store: -@iter: -@parent: -@sibling: - - - - - - - -@tree_store: -@iter: -@parent: -@sibling: - - - - - - - -@tree_store: -@iter: -@parent: -@position: -@Varargs: - - - - - - - -@tree_store: -@iter: -@parent: -@position: -@columns: -@values: -@n_values: - - - - - - - -@tree_store: -@iter: -@parent: - - - - - - - -@tree_store: -@iter: -@parent: - - - - - - - -@tree_store: -@iter: -@descendant: -@Returns: - - - - - - - -@tree_store: -@iter: -@Returns: - - - - - - - -@tree_store: - - - - - - - -@tree_store: -@iter: -@Returns: - - - - - - - -@tree_store: -@parent: -@new_order: - - - - - - - -@tree_store: -@a: -@b: - - - - - - - -@tree_store: -@iter: -@position: - - - - - - - -@tree_store: -@iter: -@position: - - diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index c7f0087cd3..05567396a0 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -28,6 +28,41 @@ #include "gtkintl.h" +/** + * SECTION:gtktreestore + * @Short_description: A tree-like data structure that can be used with the GtkTreeView + * @Title: GtkTreeStore + * @See_also: #GtkTreeModel + * + * The #GtkTreeStore object is a list model for use with a #GtkTreeView + * widget. It implements the #GtkTreeModel interface, and consequentialy, + * can use all of the methods available there. It also implements the + * #GtkTreeSortable interface so it can be sorted by the view. Finally, + * it also implements the tree drag and + * drop interfaces. + * + * + * GtkTreeStore as GtkBuildable + * The GtkTreeStore implementation of the #GtkBuildable interface allows + * to specify the model columns with a <columns> element that may + * contain multiple <column> elements, each specifying one model + * column. The "type" attribute specifies the data type for the column. + * + * A UI Definition fragment for a tree store + * + * + * + * + * + * + * + * ]]> + * + * + */ + + #define G_NODE(node) ((GNode *)node) #define GTK_TREE_STORE_IS_SORTED(tree) (((GtkTreeStore*)(tree))->sort_column_id != GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID) #define VALID_ITER(iter, tree_store) ((iter)!= NULL && (iter)->user_data != NULL && ((GtkTreeStore*)(tree_store))->stamp == (iter)->stamp)