summaryrefslogtreecommitdiff
path: root/gtk/gtkcellarea.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-23 23:37:58 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-23 23:37:58 +0900
commite53dc3479f84047a38f098a00eee2b2082ee0e23 (patch)
tree8146f590f368e48d1dda353d974ee84dd9db36ef /gtk/gtkcellarea.h
parentd56babefb4efb4f08e0fbbd0be7aa9099aae1cfd (diff)
downloadgtk+-e53dc3479f84047a38f098a00eee2b2082ee0e23.tar.gz
Added GtkCellAreaClass->apply_attributes()
Made gtk_cell_area_apply_attributes use a vfunc & signal so that subclasses might do specialized things picking up attributes from the model possibly for embedding widgets, and as specially for GtkTreeMenu to connect to the signal and synchronize the menu sensitivity states in a more convenient way than going through the GtkCellLayoutDataFunc.
Diffstat (limited to 'gtk/gtkcellarea.h')
-rw-r--r--gtk/gtkcellarea.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkcellarea.h b/gtk/gtkcellarea.h
index c963ae395d..d457d81e21 100644
--- a/gtk/gtkcellarea.h
+++ b/gtk/gtkcellarea.h
@@ -99,6 +99,11 @@ struct _GtkCellAreaClass
const GdkRectangle *cell_area,
GtkCellRendererState flags,
gboolean paint_focus);
+ void (* apply_attributes) (GtkCellArea *area,
+ GtkTreeModel *tree_model,
+ GtkTreeIter *iter,
+ gboolean is_expander,
+ gboolean is_expanded);
/* Geometry */
GtkCellAreaContext *(* create_context) (GtkCellArea *area);