From ab8f482b2143943ff8d33bd1b6f986e7636d0056 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sun, 11 Jun 2000 05:07:13 +0000 Subject: supply the pixbufs here. 2000-06-10 Chris Toshok * e-tree-example-1.c (create_tree): supply the pixbufs here. * e-cell-tree.h: change pixbuf names to open_pixbuf/closed_pixbuf. * e-cell-tree.c (e_cell_tree_construct): take open/closed pixbuf parameters, and don't #include the .xpm files directly here. (e_cell_tree_new): same. (ect_draw): use the pixbufs from the ECellTree. svn path=/trunk/; revision=3522 --- widgets/e-table/e-cell-tree.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'widgets/e-table/e-cell-tree.h') diff --git a/widgets/e-table/e-cell-tree.h b/widgets/e-table/e-cell-tree.h index 6bd842b39e..ef6babeda4 100644 --- a/widgets/e-table/e-cell-tree.h +++ b/widgets/e-table/e-cell-tree.h @@ -21,8 +21,8 @@ typedef struct { gboolean draw_lines; - GdkPixbuf *expanded_image; - GdkPixbuf *unexpanded_image; + GdkPixbuf *open_pixbuf; + GdkPixbuf *closed_pixbuf; ECell *subcell; } ECellTree; @@ -32,9 +32,15 @@ typedef struct { } ECellTreeClass; GtkType e_cell_tree_get_type (void); -ECell *e_cell_tree_new (ETableModel *model, gboolean draw_lines, +ECell *e_cell_tree_new (ETableModel *model, + GdkPixbuf *open_pixbuf, + GdkPixbuf *closed_pixbuf, + gboolean draw_lines, ECell *subcell); -void e_cell_tree_construct (ECellTree *ect, gboolean draw_lines, +void e_cell_tree_construct (ECellTree *ect, + GdkPixbuf *open_pixbuf, + GdkPixbuf *closed_pixbuf, + gboolean draw_lines, ECell *subcell); #endif /* _E_CELL_TREE_H_ */ -- cgit v1.2.3