diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-06-23 15:47:37 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-06-23 15:47:37 +0800 |
commit | 422046cc58a534f6916205f282cc6b50a98eeb95 (patch) | |
tree | 3c5ab189a7edaa7adb10dac1031249ae1ec4f6f7 /widgets/table/e-tree-model.h | |
parent | 29a313c41efa7844952000a88d772af11fbb6f37 (diff) | |
download | gsoc2013-evolution-422046cc58a534f6916205f282cc6b50a98eeb95.tar.gz gsoc2013-evolution-422046cc58a534f6916205f282cc6b50a98eeb95.tar.zst gsoc2013-evolution-422046cc58a534f6916205f282cc6b50a98eeb95.zip |
add icon_at virtual function - it was stupid to make the insert call take
2000-06-23 Chris Toshok <toshok@helixcode.com>
* e-tree-model.h, e-tree-model.c: add icon_at virtual function -
it was stupid to make the insert call take 2 pixbufs. the model
should give this information.
* e-cell-tree.c: get rid of the opened/closed pixbuf stuff. call
e_tree_model_icon_of_node.
* e-tree-example-1.c: add my_icon_at.
* e-tree-simple.c (simple_icon_at): new function
(e_tree_simple_new): add icon_at parameter.
* e-tree-simple.h: add SimpleIconAtFn.
svn path=/trunk/; revision=3707
Diffstat (limited to 'widgets/table/e-tree-model.h')
-rw-r--r-- | widgets/table/e-tree-model.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/table/e-tree-model.h b/widgets/table/e-tree-model.h index 0a7ecdb7ed..7b8d86826f 100644 --- a/widgets/table/e-tree-model.h +++ b/widgets/table/e-tree-model.h @@ -39,6 +39,7 @@ typedef struct { void (*set_expanded_recurse) (ETreeModel *etm, ETreePath *node, gboolean expanded); void (*set_expanded_level) (ETreeModel *etm, ETreePath *node, gboolean expanded, int level); + GdkPixbuf *(*icon_at) (ETreeModel *etm, ETreePath* node); ETreePath* (*node_at_row) (ETreeModel *etm, int row); /* @@ -69,8 +70,8 @@ ETreePath *e_tree_model_node_get_next (ETreeModel *etree, ETreePath *path); ETreePath *e_tree_model_node_get_prev (ETreeModel *etree, ETreePath *path); /* node operations */ -ETreePath *e_tree_model_node_insert (ETreeModel *etree, ETreePath *parent, int position, GdkPixbuf *opened_pixbuf, GdkPixbuf *closed_pixbuf, gpointer node_data); -ETreePath *e_tree_model_node_insert_before (ETreeModel *etree, ETreePath *parent, ETreePath *sibling, GdkPixbuf *opened_pixbuf, GdkPixbuf *closed_pixbuf, gpointer node_data); +ETreePath *e_tree_model_node_insert (ETreeModel *etree, ETreePath *parent, int position, gpointer node_data); +ETreePath *e_tree_model_node_insert_before (ETreeModel *etree, ETreePath *parent, ETreePath *sibling, gpointer node_data); gpointer e_tree_model_node_remove (ETreeModel *etree, ETreePath *path); /* node accessors */ @@ -85,11 +86,10 @@ guint e_tree_model_node_depth (ETreeModel *etree, ETreePath guint e_tree_model_node_num_visible_descendents (ETreeModel *etm, ETreePath *node); gpointer e_tree_model_node_get_data (ETreeModel *etm, ETreePath *node); void e_tree_model_node_set_data (ETreeModel *etm, ETreePath *node, gpointer node_data); -GdkPixbuf *e_tree_model_node_get_opened_pixbuf (ETreeModel *etm, ETreePath *node); -GdkPixbuf *e_tree_model_node_get_closed_pixbuf (ETreeModel *etm, ETreePath *node); /* display oriented routines */ ETreePath *e_tree_model_node_at_row (ETreeModel *etree, int row); +GdkPixbuf *e_tree_model_icon_of_node (ETreeModel *etree, ETreePath *path); int e_tree_model_row_of_node (ETreeModel *etree, ETreePath *path); void e_tree_model_root_node_set_visible (ETreeModel *etree, gboolean visible); gboolean e_tree_model_root_node_is_visible (ETreeModel *etree); |