aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-table-column-specification.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-table-column-specification.c')
-rw-r--r--e-util/e-table-column-specification.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/e-util/e-table-column-specification.c b/e-util/e-table-column-specification.c
index a770bdcd62..c0c5e9b538 100644
--- a/e-util/e-table-column-specification.c
+++ b/e-util/e-table-column-specification.c
@@ -30,11 +30,6 @@
#include <stdlib.h>
-#include <libxml/parser.h>
-#include <libxml/xmlmemory.h>
-
-#include "e-xml-utils.h"
-
G_DEFINE_TYPE (
ETableColumnSpecification,
e_table_column_specification,
@@ -126,29 +121,3 @@ e_table_column_specification_equal (ETableColumnSpecification *spec_a,
return (spec_a->model_col == spec_b->model_col);
}
-void
-e_table_column_specification_load_from_node (ETableColumnSpecification *etcs,
- const xmlNode *node)
-{
- free_strings (etcs);
-
- etcs->model_col = e_xml_get_integer_prop_by_name (node, (const guchar *)"model_col");
- etcs->compare_col = e_xml_get_integer_prop_by_name_with_default (node, (const guchar *)"compare_col", etcs->model_col);
- etcs->title = e_xml_get_string_prop_by_name (node, (const guchar *)"_title");
- etcs->pixbuf = e_xml_get_string_prop_by_name (node, (const guchar *)"pixbuf");
-
- etcs->expansion = e_xml_get_double_prop_by_name (node, (const guchar *)"expansion");
- etcs->minimum_width = e_xml_get_integer_prop_by_name (node, (const guchar *)"minimum_width");
- etcs->resizable = e_xml_get_bool_prop_by_name (node, (const guchar *)"resizable");
- etcs->disabled = e_xml_get_bool_prop_by_name (node, (const guchar *)"disabled");
-
- etcs->cell = e_xml_get_string_prop_by_name (node, (const guchar *)"cell");
- etcs->compare = e_xml_get_string_prop_by_name (node, (const guchar *)"compare");
- etcs->search = e_xml_get_string_prop_by_name (node, (const guchar *)"search");
- etcs->sortable = e_xml_get_bool_prop_by_name_with_default (node, (const guchar *)"sortable", TRUE);
- etcs->priority = e_xml_get_integer_prop_by_name_with_default (node, (const guchar *)"priority", 0);
-
- if (etcs->title == NULL)
- etcs->title = g_strdup ("");
-}
-