typedef struct _GtkCellAreaClass GtkCellAreaClass;
typedef struct _GtkCellAreaPrivate GtkCellAreaPrivate;
-
/**
* GtkCellCallback:
* @renderer: the cell renderer to operate on
gpointer data);
-/**
- * GtkCellAttributeCallback:
- * @renderer: the #GtkCellRenderer that has an attribute
- * @attribute: the property attributed to @id
- * @id: the identifier of this attributed value
- * @data: user-supplied data
- *
- * The type of the callback functions used for iterating over the
- * attributes of the cell renderers in a #GtkCellArea,
- * see gtk_cell_area_attribute_forall().
- */
-typedef void (*GtkCellAttributeCallback) (GtkCellRenderer *renderer,
- const gchar *attribute,
- gint id,
- gpointer data);
-
-
struct _GtkCellArea
{
GInitiallyUnowned parent_instance;
GtkWidget *widget,
const GdkRectangle *cell_area);
- /* Attributes */
- void (* attribute_connect) (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute,
- gint id);
- void (* attribute_disconnect) (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute,
- gint id);
- void (* attribute_forall) (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkCellAttributeCallback callback,
- gpointer user_data);
-
/* Geometry */
GtkSizeRequestMode (* get_request_mode) (GtkCellArea *area);
void (* get_preferred_width) (GtkCellArea *area,
GtkWidget *widget,
const GdkRectangle *cell_area);
-/* Attributes */
-void gtk_cell_area_attribute_connect (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute,
- gint id);
-void gtk_cell_area_attribute_disconnect (GtkCellArea *area,
- GtkCellRenderer *renderer,
- const gchar *attribute,
- gint id);
-void gtk_cell_area_attribute_forall (GtkCellArea *area,
- GtkCellRenderer *renderer,
- GtkCellAttributeCallback callback,
- gpointer user_data);
-
/* Geometry */
GtkSizeRequestMode gtk_cell_area_get_request_mode (GtkCellArea *area);
void gtk_cell_area_get_preferred_width (GtkCellArea *area,
void gtk_cell_area_apply_attributes (GtkCellArea *area,
GtkTreeModel *tree_model,
GtkTreeIter *iter);
+void gtk_cell_area_attribute_connect (GtkCellArea *area,
+ GtkCellRenderer *renderer,
+ const gchar *attribute,
+ gint column);
+void gtk_cell_area_attribute_disconnect (GtkCellArea *area,
+ GtkCellRenderer *renderer,
+ const gchar *attribute);
G_END_DECLS