From 96b07a2ff024c6e852344f4614735132219d2104 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Jun 2013 19:02:43 -0400 Subject: ETableCol: Embed an ETableColumnSpecification. Eliminates a few redundant fields. --- e-util/e-table-col.h | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'e-util/e-table-col.h') diff --git a/e-util/e-table-col.h b/e-util/e-table-col.h index 243aa04e7a..1f8d4b158b 100644 --- a/e-util/e-table-col.h +++ b/e-util/e-table-col.h @@ -31,6 +31,7 @@ #include #include +#include /* Standard GObject macros */ #define E_TYPE_TABLE_COL \ @@ -68,6 +69,8 @@ typedef struct _ETableColClass ETableColClass; struct _ETableCol { GObject parent; + ETableColumnSpecification *spec; + gchar *text; gchar *icon_name; GdkPixbuf *pixbuf; @@ -78,15 +81,7 @@ struct _ETableCol { GCompareDataFunc compare; ETableSearchFunc search; - guint selected : 1; - guint resizable : 1; - guint disabled : 1; - guint sortable : 1; - guint groupable : 1; - - gint col_idx; - gint compare_col; - gint priority; + gboolean selected; GtkJustification justification; @@ -97,17 +92,12 @@ struct _ETableColClass { GObjectClass parent_class; }; -GType e_table_col_get_type (void) G_GNUC_CONST; -ETableCol * e_table_col_new (gint col_idx, - const gchar *text, - const gchar *icon_name, - gdouble expansion, - gint min_width, - ECell *ecell, - GCompareDataFunc compare, - gboolean resizable, - gboolean disabled, - gint priority); +GType e_table_col_get_type (void) G_GNUC_CONST; +ETableCol * e_table_col_new (ETableColumnSpecification *spec, + const gchar *text, + const gchar *icon_name, + ECell *ecell, + GCompareDataFunc compare); G_END_DECLS -- cgit