aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-02-12 12:13:14 +0800
committerChris Lahey <clahey@src.gnome.org>2000-02-12 12:13:14 +0800
commit4ddf8af33a9dbbdc5ce946da54ee228403ff577f (patch)
tree88c35086789edb574c1bc11270f8b7bf5c84227b /widgets/table/e-table-col.c
parentd2fe58c56857e9e4b2e37f87174da6956b0d985c (diff)
downloadgsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.gz
gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.zst
gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.zip
Added test of sort arrows.
2000-02-11 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'widgets/table/e-table-col.c')
-rw-r--r--widgets/table/e-table-col.c17
1 files changed, 17 insertions, 0 deletions
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;
+}
+