aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-table-col.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-27 07:02:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-02 22:34:09 +0800
commit96b07a2ff024c6e852344f4614735132219d2104 (patch)
tree95c9bdb74cde0769a31399cc6d2b92415b37ba32 /e-util/e-table-col.h
parentd40e5a8ba1e7d362415be17d0ccde4477243839d (diff)
downloadgsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar.gz
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar.bz2
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar.lz
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar.xz
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.tar.zst
gsoc2013-evolution-96b07a2ff024c6e852344f4614735132219d2104.zip
ETableCol: Embed an ETableColumnSpecification.
Eliminates a few redundant fields.
Diffstat (limited to 'e-util/e-table-col.h')
-rw-r--r--e-util/e-table-col.h30
1 files changed, 10 insertions, 20 deletions
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 <gdk-pixbuf/gdk-pixbuf.h>
#include <e-util/e-cell.h>
+#include <e-util/e-table-column-specification.h>
/* 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