diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-02-12 12:13:14 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-02-12 12:13:14 +0800 |
commit | 4ddf8af33a9dbbdc5ce946da54ee228403ff577f (patch) | |
tree | 88c35086789edb574c1bc11270f8b7bf5c84227b /widgets/table/e-table-col.h | |
parent | d2fe58c56857e9e4b2e37f87174da6956b0d985c (diff) | |
download | gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.gz gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.bz2 gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.lz gsoc2013-evolution-4ddf8af33a9dbbdc5ce946da54ee228403ff577f.tar.xz 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.h')
-rw-r--r-- | widgets/table/e-table-col.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/widgets/table/e-table-col.h b/widgets/table/e-table-col.h index 7356820b7a..c6f9c9dfb5 100644 --- a/widgets/table/e-table-col.h +++ b/widgets/table/e-table-col.h @@ -12,6 +12,14 @@ #define E_IS_TABLE_COL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_TABLE_COL_TYPE)) typedef struct _ETableCol ETableCol; +typedef struct _ETableColClass ETableColClass; +typedef enum _ETableColArrow ETableColArrow; + +enum _ETableColArrow { + E_TABLE_COL_ARROW_NONE, + E_TABLE_COL_ARROW_UP, + E_TABLE_COL_ARROW_DOWN +}; /* * Information about a single column @@ -29,23 +37,27 @@ struct _ETableCol { unsigned int resizeable:1; int col_idx; - ECell *ecell; + ETableColArrow arrow; + + ECell *ecell; }; -typedef struct { +struct _ETableColClass { GtkObjectClass parent_class; -} ETableColClass; - -GtkType e_table_col_get_type (void); -ETableCol *e_table_col_new (int col_idx, const char *text, - int width, int min_width, - ECell *ecell, GCompareFunc compare, - gboolean resizable); -ETableCol *e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, - int width, int min_width, - ECell *ecell, GCompareFunc compare, - gboolean resizable); -void e_table_col_destroy (ETableCol *etc); +}; + +GtkType e_table_col_get_type (void); +ETableCol *e_table_col_new (int col_idx, const char *text, + int width, int min_width, + ECell *ecell, GCompareFunc compare, + gboolean resizable); +ETableCol *e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, + int width, int min_width, + ECell *ecell, GCompareFunc compare, + gboolean resizable); +void e_table_col_destroy (ETableCol *etc); +void e_table_col_set_arrow (ETableCol *col, ETableColArrow arrow); +ETableColArrow e_table_col_get_arrow (ETableCol *col); #endif /* _E_TABLE_COL_H_ */ |