aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-03 21:47:56 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-03 21:47:56 +0800
commit2e93b3da0b04b8f262891ebf38827b2d21f80905 (patch)
tree558cec578eea4edff7c667b6d4bf8c19fae42b2e /widgets/table/e-table-col.c
parentd3798ab87ef00d8c3944b362bd4960b33d95f4d3 (diff)
downloadgsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar.gz
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar.bz2
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar.lz
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar.xz
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.tar.zst
gsoc2013-evolution-2e93b3da0b04b8f262891ebf38827b2d21f80905.zip
Pick which field of the row to select based on priority.
2001-10-03 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c (set_initial_selection): Pick which field of the row to select based on priority. * e-table-col.c, e-table-col.h: Added the priority field to this class. Adapted the _new functions appropriately. * e-table-column-specification.c, e-table-column-specification.h: Added the priority field to this class. * e-table-utils.c (et_col_spec_to_col): Handle the priority field here. svn path=/trunk/; revision=13370
Diffstat (limited to 'widgets/table/e-table-col.c')
-rw-r--r--widgets/table/e-table-col.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c
index 7a67a7cf55..9efeedcae7 100644
--- a/widgets/table/e-table-col.c
+++ b/widgets/table/e-table-col.c
@@ -85,6 +85,7 @@ e_table_col_init (ETableCol *etc)
etc->sortable = 1;
etc->groupable = 1;
etc->justification = GTK_JUSTIFY_LEFT;
+ etc->priority = 0;
}
E_MAKE_TYPE(e_table_col, "ETableCol", ETableCol, e_table_col_class_init, e_table_col_init, PARENT_TYPE);
@@ -117,7 +118,7 @@ E_MAKE_TYPE(e_table_col, "ETableCol", ETableCol, e_table_col_class_init, e_table
*/
ETableCol *
e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
- ECell *ecell, GCompareFunc compare, gboolean resizable)
+ ECell *ecell, GCompareFunc compare, gboolean resizable, int priority)
{
ETableCol *etc;
@@ -138,6 +139,7 @@ e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
etc->min_width = min_width;
etc->ecell = ecell;
etc->compare = compare;
+ etc->priority = priority;
etc->selected = 0;
etc->resizable = resizable;
@@ -175,7 +177,7 @@ e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
*/
ETableCol *
e_table_col_new_with_pixbuf (int col_idx, const char *text, GdkPixbuf *pixbuf, double expansion, int min_width,
- ECell *ecell, GCompareFunc compare, gboolean resizable)
+ ECell *ecell, GCompareFunc compare, gboolean resizable, int priority)
{
ETableCol *etc;
@@ -196,6 +198,7 @@ e_table_col_new_with_pixbuf (int col_idx, const char *text, GdkPixbuf *pixbuf, d
etc->min_width = min_width;
etc->ecell = ecell;
etc->compare = compare;
+ etc->priority = priority;
etc->selected = 0;
etc->resizable = resizable;