X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtktreemodelfilter.h;h=832de5069844404eb177359bd91f42fbd2e8a455;hb=HEAD;hp=67e34fbb89eebeaa903cf5a45bc4fee858a11ccc;hpb=4824a730841d5ee3b4492221f42cc40ee7296974;p=~andy%2Fgtk diff --git a/gtk/gtktreemodelfilter.h b/gtk/gtktreemodelfilter.h index 67e34fbb8..832de5069 100644 --- a/gtk/gtktreemodelfilter.h +++ b/gtk/gtktreemodelfilter.h @@ -13,19 +13,16 @@ * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ +#ifndef __GTK_TREE_MODEL_FILTER_H__ +#define __GTK_TREE_MODEL_FILTER_H__ + #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only can be included directly." #endif -#ifndef __GTK_TREE_MODEL_FILTER_H__ -#define __GTK_TREE_MODEL_FILTER_H__ - -#include #include G_BEGIN_DECLS @@ -37,9 +34,38 @@ G_BEGIN_DECLS #define GTK_IS_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_TREE_MODEL_FILTER)) #define GTK_TREE_MODEL_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) +/** + * GtkTreeModelFilterVisibleFunc: + * @model: the child model of the #GtkTreeModelFilter + * @iter: a #GtkTreeIter pointing to the row in @model whose visibility + * is determined + * @data: (closure): user data given to gtk_tree_model_filter_set_visible_func() + * + * A function which decides whether the row indicated by @iter is visible. + * + * Returns: Whether the row indicated by @iter is visible. + */ typedef gboolean (* GtkTreeModelFilterVisibleFunc) (GtkTreeModel *model, GtkTreeIter *iter, gpointer data); + +/** + * GtkTreeModelFilterModifyFunc: + * @model: the #GtkTreeModelFilter + * @iter: a #GtkTreeIter pointing to the row whose display values are determined + * @value: A #GValue which is already initialized for with the correct type for + * the column @column. + * @column: the column whose display value is determined + * @data: (closure): user data given to gtk_tree_model_filter_set_modify_func() + * + * A function which calculates display values from raw values in the model. + * It must fill @value with the display value for the column @column in the + * row indicated by @iter. + * + * Since this function is called for each data access, it's not a + * particularly efficient operation. + */ + typedef void (* GtkTreeModelFilterModifyFunc) (GtkTreeModel *model, GtkTreeIter *iter, GValue *value,