X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtktreemodelfilter.h;h=832de5069844404eb177359bd91f42fbd2e8a455;hb=45ad8a06ad511ad95a74172172b9fe459bc666ad;hp=653e395a037735e19578eb296d8be89ce529fe0c;hpb=77d4d3cdae0739c0a5643fb23891f8790f05c074;p=~andy%2Fgtk diff --git a/gtk/gtktreemodelfilter.h b/gtk/gtktreemodelfilter.h index 653e395a0..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, @@ -55,7 +81,7 @@ struct _GtkTreeModelFilter GObject parent; /*< private >*/ - GtkTreeModelFilterPrivate *GSEAL (priv); + GtkTreeModelFilterPrivate *priv; }; struct _GtkTreeModelFilterClass @@ -72,8 +98,10 @@ struct _GtkTreeModelFilterClass gint column); /* Padding for future expansion */ - void (*_gtk_reserved0) (void); void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); }; /* base */