aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-column-specification.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-23 06:10:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-23 06:10:27 +0800
commit175618ed1efc1ba19645cee9127055bdbd34196b (patch)
treef495fdc39375fd065645aae9481aa4f64c48d809 /widgets/table/e-table-column-specification.c
parentb80a058e5534b668e11d7e6b31408acf52bf4bd3 (diff)
downloadgsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.gz
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.bz2
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.lz
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.xz
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.tar.zst
gsoc2013-evolution-175618ed1efc1ba19645cee9127055bdbd34196b.zip
Added a disabled field here.
2001-10-22 Christopher James Lahey <clahey@ximian.com> * e-table-col.c, e-table-col.h, e-table-column-specification.c, e-table-column-specification.h: Added a disabled field here. * e-table-config.c, e-table-field-chooser-item.c: Pay attention to the disabled field here. * e-table-utils.c: Copy the disabled field from the column specification to the col. svn path=/trunk/; revision=13897
Diffstat (limited to 'widgets/table/e-table-column-specification.c')
-rw-r--r--widgets/table/e-table-column-specification.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/widgets/table/e-table-column-specification.c b/widgets/table/e-table-column-specification.c
index ad1122dec9..77db19d1e5 100644
--- a/widgets/table/e-table-column-specification.c
+++ b/widgets/table/e-table-column-specification.c
@@ -51,12 +51,13 @@ static void
etcs_init (ETableColumnSpecification *specification)
{
specification->model_col = 0;
- specification->title = g_strdup("");
+ specification->title = g_strdup("");
specification->pixbuf = NULL;
specification->expansion = 0;
specification->minimum_width = 0;
specification->resizable = FALSE;
+ specification->disabled = FALSE;
specification->cell = NULL;
specification->compare = NULL;
@@ -79,16 +80,17 @@ e_table_column_specification_load_from_node (ETableColumnSpecification *etcs,
{
free_strings(etcs);
- etcs->model_col = e_xml_get_integer_prop_by_name(node, "model_col");
- etcs->title = e_xml_get_string_prop_by_name(node, "_title");
- etcs->pixbuf = e_xml_get_string_prop_by_name(node, "pixbuf");
+ etcs->model_col = e_xml_get_integer_prop_by_name (node, "model_col");
+ etcs->title = e_xml_get_string_prop_by_name (node, "_title");
+ etcs->pixbuf = e_xml_get_string_prop_by_name (node, "pixbuf");
- etcs->expansion = e_xml_get_double_prop_by_name(node, "expansion");
- etcs->minimum_width = e_xml_get_integer_prop_by_name(node, "minimum_width");
- etcs->resizable = e_xml_get_bool_prop_by_name(node, "resizable");
+ etcs->expansion = e_xml_get_double_prop_by_name (node, "expansion");
+ etcs->minimum_width = e_xml_get_integer_prop_by_name (node, "minimum_width");
+ etcs->resizable = e_xml_get_bool_prop_by_name (node, "resizable");
+ etcs->disabled = e_xml_get_bool_prop_by_name (node, "disabled");
- etcs->cell = e_xml_get_string_prop_by_name(node, "cell");
- etcs->compare = e_xml_get_string_prop_by_name(node, "compare");
+ etcs->cell = e_xml_get_string_prop_by_name (node, "cell");
+ etcs->compare = e_xml_get_string_prop_by_name (node, "compare");
etcs->priority = e_xml_get_integer_prop_by_name_with_default (node, "priority", 0);
if (etcs->title == NULL)
@@ -112,6 +114,7 @@ e_table_column_specification_save_to_node (ETableColumnSpecification *specificat
e_xml_set_double_prop_by_name(node, "expansion", specification->expansion);
e_xml_set_integer_prop_by_name(node, "minimum_width", specification->minimum_width);
e_xml_set_bool_prop_by_name(node, "resizable", specification->resizable);
+ e_xml_set_bool_prop_by_name(node, "disabled", specification->disabled);
e_xml_set_string_prop_by_name(node, "cell", specification->cell);
e_xml_set_string_prop_by_name(node, "compare", specification->compare);