aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-col.c')
-rw-r--r--widgets/table/e-table-col.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c
index 7d302f4d80..fa53fb0d0c 100644
--- a/widgets/table/e-table-col.c
+++ b/widgets/table/e-table-col.c
@@ -34,7 +34,8 @@ static GtkObjectClass *parent_class;
enum {
ARG_0,
- ARG_SORTABLE
+ ARG_SORTABLE,
+ ARG_COMPARE_COL
};
static void
@@ -62,6 +63,9 @@ etc_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
case ARG_SORTABLE:
etc->sortable = GTK_VALUE_BOOL(*arg);
break;
+ case ARG_COMPARE_COL:
+ etc->compare_col = GTK_VALUE_INT(*arg);
+ break;
}
}
@@ -74,6 +78,9 @@ etc_get_arg (GtkObject *o, GtkArg *arg, guint arg_id)
case ARG_SORTABLE:
GTK_VALUE_BOOL(*arg) = etc->sortable;
break;
+ case ARG_COMPARE_COL:
+ GTK_VALUE_INT(*arg) = etc->compare_col;
+ break;
default:
arg->type = GTK_TYPE_INVALID;
break;
@@ -90,6 +97,8 @@ e_table_col_class_init (GtkObjectClass *object_class)
gtk_object_add_arg_type ("ETableCol::sortable",
GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_SORTABLE);
+ gtk_object_add_arg_type ("ETableCol::compare_col",
+ GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_COMPARE_COL);
}
static void
@@ -148,6 +157,7 @@ e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
etc->is_pixbuf = FALSE;
etc->col_idx = col_idx;
+ etc->compare_col = col_idx;
etc->text = g_strdup (text);
etc->pixbuf = NULL;
etc->expansion = expansion;
@@ -208,6 +218,7 @@ e_table_col_new_with_pixbuf (int col_idx, const char *text, GdkPixbuf *pixbuf, d
etc->is_pixbuf = TRUE;
etc->col_idx = col_idx;
+ etc->compare_col = col_idx;
etc->text = g_strdup(text);
etc->pixbuf = pixbuf;
etc->expansion = expansion;