diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-02-21 19:59:23 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-02-21 19:59:23 +0000 |
commit | 334a40e8939c84d9f164677524e3b265fc801eda (patch) | |
tree | e7b8a2d92e763a0238cc8fff48c67c2e319a98dc /gtk/gtktreeviewcolumn.h | |
parent | e1e093fa4449b77323c835ec30b97cf535d6c766 (diff) | |
download | gdk-pixbuf-334a40e8939c84d9f164677524e3b265fc801eda.tar.gz |
Changed name to be set_cell_data_func to make it clear what the functino
Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
Changed name to be set_cell_data_func to make it clear what
the functino does. Close bug #51069.
Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/testgtk.c (main): Remove turning on of profiling malloc,
have memory actually freed. Keeps box running longer.
Diffstat (limited to 'gtk/gtktreeviewcolumn.h')
-rw-r--r-- | gtk/gtktreeviewcolumn.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gtk/gtktreeviewcolumn.h b/gtk/gtktreeviewcolumn.h index 9e87706c5..dd22a2beb 100644 --- a/gtk/gtktreeviewcolumn.h +++ b/gtk/gtktreeviewcolumn.h @@ -45,10 +45,11 @@ typedef enum typedef struct _GtkTreeViewColumn GtkTreeViewColumn; typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass; -typedef void (* GtkTreeViewColumnFunc) (GtkTreeViewColumn *tree_column, - GtkTreeModel *tree_model, - GtkTreeIter *iter, - gpointer data); +typedef void (* CellDataFunc) (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); struct _GtkTreeViewColumn @@ -68,8 +69,9 @@ struct _GtkTreeViewColumn gint width; gint min_width; gint max_width; + gint allocated_width; - GtkTreeViewColumnFunc func; + CellDataFunc func; gpointer func_data; GtkDestroyNotify destroy; gchar *title; @@ -104,8 +106,8 @@ void gtk_tree_view_column_add_attribute (GtkTreeViewColumn gint column); void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column, ...); -void gtk_tree_view_column_set_func (GtkTreeViewColumn *tree_column, - GtkTreeViewColumnFunc func, +void gtk_tree_view_column_set_cell_data_func (GtkTreeViewColumn *tree_column, + CellDataFunc func, gpointer func_data, GtkDestroyNotify destroy); void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column); @@ -134,7 +136,7 @@ void gtk_tree_view_column_clicked (GtkTreeViewColumn /* Options for manipulating the column headers */ void gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column, - gchar *title); + const gchar *title); G_CONST_RETURN gchar *gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column); void gtk_tree_view_column_set_clickable (GtkTreeViewColumn *tree_column, gboolean active); |