aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/test-check.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-12 08:27:22 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-12 08:27:22 +0800
commit04bb0a4fb01448394533a80850370448a2f3aadf (patch)
tree847a8b541f2597a80e2bfdc73b3401a288368128 /widgets/e-table/test-check.c
parent07d9ddab8e2b6759bbe1b2364371bf5c7b6fe6de (diff)
downloadgsoc2013-evolution-04bb0a4fb01448394533a80850370448a2f3aadf.tar.gz
gsoc2013-evolution-04bb0a4fb01448394533a80850370448a2f3aadf.tar.zst
gsoc2013-evolution-04bb0a4fb01448394533a80850370448a2f3aadf.zip
Test column header image.
2000-02-11 Christopher James Lahey <clahey@helixcode.com> * clip.png: Test column header image. * test-check.c: Test pixbuf column headers. * e-table-col.h, e-table-col.c: Added pixbufs for column headers. * e-table-header-item.c (draw_button): Draw pixbuf column headers properly. svn path=/trunk/; revision=1739
Diffstat (limited to 'widgets/e-table/test-check.c')
-rw-r--r--widgets/e-table/test-check.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/e-table/test-check.c b/widgets/e-table/test-check.c
index 61fe161ca1..86c01cf202 100644
--- a/widgets/e-table/test-check.c
+++ b/widgets/e-table/test-check.c
@@ -92,6 +92,7 @@ check_test (void)
ETableHeader *e_table_header;
ETableCol *col_0, *col_1;
ECell *cell_left_just, *cell_image_check;
+ GdkPixbuf *pixbuf;
gtk_widget_push_visual (gdk_rgb_get_visual ());
gtk_widget_push_colormap (gdk_rgb_get_cmap ());
@@ -108,7 +109,9 @@ check_test (void)
cell_left_just = e_cell_text_new (e_table_model, NULL, GTK_JUSTIFY_LEFT, TRUE);
cell_image_check = e_cell_checkbox_new ();
- col_0 = e_table_col_new (0, "", 18, 18, cell_image_check, g_int_equal, TRUE);
+ pixbuf = gdk_pixbuf_new_from_file("clip.png");
+ col_0 = e_table_col_new_with_pixbuf (0, pixbuf, 18, 18, cell_image_check, g_int_equal, TRUE);
+ gdk_pixbuf_unref(pixbuf);
e_table_header_add_column (e_table_header, col_0, 0);
col_1 = e_table_col_new (1, "Item Name", 180, 20, cell_left_just, g_str_equal, TRUE);