From 4ddf8af33a9dbbdc5ce946da54ee228403ff577f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 12 Feb 2000 04:13:14 +0000 Subject: Added test of sort arrows. 2000-02-11 Christopher James Lahey * test-check.c: Added test of sort arrows. * e-table-col.h, e-table-col.c: Added sort arrows for column headers (It doesn't actually sort. It just displays the arrows.) * e-table-header-item.c: Added display of arrows. svn path=/trunk/; revision=1743 --- widgets/table/e-table-col.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'widgets/table/e-table-col.c') diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c index ba5c131078..e2e12caf63 100644 --- a/widgets/table/e-table-col.c +++ b/widgets/table/e-table-col.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * E-table-col.c: ETableCol implementation * @@ -61,6 +62,8 @@ e_table_col_new (int col_idx, const char *text, int width, int min_width, etc->ecell = ecell; etc->compare = compare; + etc->arrow = E_TABLE_COL_ARROW_NONE; + etc->selected = 0; etc->resizeable = resizable; @@ -90,6 +93,8 @@ e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, int width, int min_ etc->ecell = ecell; etc->compare = compare; + etc->arrow = E_TABLE_COL_ARROW_NONE; + etc->selected = 0; etc->resizeable = resizable; @@ -98,4 +103,16 @@ e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, int width, int min_ return etc; } +void +e_table_col_set_arrow (ETableCol *col, ETableColArrow arrow) +{ + col->arrow = arrow; +} + +ETableColArrow +e_table_col_get_arrow (ETableCol *col) +{ + return col->arrow; +} + -- cgit