diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-02-17 00:16:08 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-02-17 00:16:08 +0000 |
commit | b10825d537175d0f0c20deb07422a63f19856a66 (patch) | |
tree | 2cb57d478929705918abc8618228aa47ffa21b45 /gtk/gtktreeviewcolumn.h | |
parent | 08add3cd503b3b891a0028b9b5400e271439c89f (diff) | |
download | gdk-pixbuf-b10825d537175d0f0c20deb07422a63f19856a66.tar.gz |
removed gtk_*_store_get, and moved to GtkTreeModel.
Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
gtk_*_store_get, and moved to GtkTreeModel.
* gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
* gtk/Makefile.am: remove gtktreemodelmapping.[ch]
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
set the func.
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
freeze/thaw notify between setting all the properties for a cell.
* gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
Diffstat (limited to 'gtk/gtktreeviewcolumn.h')
-rw-r--r-- | gtk/gtktreeviewcolumn.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gtk/gtktreeviewcolumn.h b/gtk/gtktreeviewcolumn.h index 3dbc471af..a91d3a9c3 100644 --- a/gtk/gtktreeviewcolumn.h +++ b/gtk/gtktreeviewcolumn.h @@ -45,11 +45,12 @@ typedef enum typedef struct _GtkTreeViewColumn GtkTreeViewColumn; typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass; -typedef gboolean (* GtkTreeViewColumnFunc) (GtkTreeViewColumn *tree_column, - GtkTreeModel *tree_model, - GtkTreeIter *iter, - gpointer data); +typedef void (* GtkTreeViewColumnFunc) (GtkTreeViewColumn *tree_column, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); + struct _GtkTreeViewColumn { GtkObject parent; @@ -70,6 +71,7 @@ struct _GtkTreeViewColumn GtkTreeViewColumnFunc func; gpointer func_data; + GtkDestroyNotify destroy; gchar *title; GtkCellRenderer *cell; GSList *attributes; @@ -91,17 +93,21 @@ struct _GtkTreeViewColumnClass GtkType gtk_tree_view_column_get_type (void); GtkTreeViewColumn *gtk_tree_view_column_new (void); -GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (gchar *title, +GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, GtkCellRenderer *cell, ...); void gtk_tree_view_column_set_cell_renderer (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell); GtkCellRenderer *gtk_tree_view_column_get_cell_renderer (GtkTreeViewColumn *tree_column); void gtk_tree_view_column_add_attribute (GtkTreeViewColumn *tree_column, - gchar *attribute, + const gchar *attribute, gint column); void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column, ...); +void gtk_tree_view_column_set_func (GtkTreeViewColumn *tree_column, + GtkTreeViewColumnFunc *func, + gpointer func_data, + GtkDestroyNotify destroy); void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column); void gtk_tree_view_column_set_cell_data (GtkTreeViewColumn *tree_column, GtkTreeModel *tree_model, |