diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-26 18:59:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-26 23:36:12 +0800 |
commit | 3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420 (patch) | |
tree | b52a02f8aa636820558eead428d2ff9f1641ac0a /e-util | |
parent | be3e6825627400f8732df7a725d82913e9983546 (diff) | |
download | gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar.gz gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar.bz2 gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar.lz gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar.xz gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.tar.zst gsoc2013-evolution-3b5a2a25705103a96ae8d9053ac7e6b6b6cd2420.zip |
Remove unused e_table_specification_save_to_node().
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-table-specification.c | 64 | ||||
-rw-r--r-- | e-util/e-table-specification.h | 3 |
2 files changed, 0 insertions, 67 deletions
diff --git a/e-util/e-table-specification.c b/e-util/e-table-specification.c index ba58e1ff7d..713e0575d5 100644 --- a/e-util/e-table-specification.c +++ b/e-util/e-table-specification.c @@ -277,67 +277,3 @@ e_table_specification_load_from_node (ETableSpecification *specification, g_list_free (list); } -/** - * e_table_specification_save_to_node: - * @specification: an #ETableSpecification - * - * Dumps the contents of @specification to an #xmlNode. - * - * Returns: a newly-created #xmlNode - */ -xmlNode * -e_table_specification_save_to_node (ETableSpecification *specification) -{ - xmlNode *node; - const gchar *s; - - g_return_val_if_fail (E_IS_TABLE_SPECIFICATION (specification), NULL); - - node = xmlNewNode (NULL, (const guchar *)"ETableSpecification"); - e_xml_set_bool_prop_by_name (node, (const guchar *)"no-headers", specification->no_headers); - e_xml_set_bool_prop_by_name (node, (const guchar *)"click-to-add", specification->click_to_add); - e_xml_set_bool_prop_by_name (node, (const guchar *)"click-to-add-end", specification->click_to_add_end && specification->click_to_add); - e_xml_set_bool_prop_by_name (node, (const guchar *)"alternating-row-colors", specification->alternating_row_colors); - e_xml_set_bool_prop_by_name (node, (const guchar *)"horizontal-draw-grid", specification->horizontal_draw_grid); - e_xml_set_bool_prop_by_name (node, (const guchar *)"vertical-draw-grid", specification->vertical_draw_grid); - e_xml_set_bool_prop_by_name (node, (const guchar *)"draw-focus", specification->draw_focus); - e_xml_set_bool_prop_by_name (node, (const guchar *)"horizontal-scrolling", specification->horizontal_scrolling); - e_xml_set_bool_prop_by_name (node, (const guchar *)"horizontal-resize", specification->horizontal_resize); - e_xml_set_bool_prop_by_name (node, (const guchar *)"allow-grouping", specification->allow_grouping); - - switch (specification->selection_mode) { - case GTK_SELECTION_SINGLE: - s = "single"; - break; - case GTK_SELECTION_BROWSE: - s = "browse"; - break; - default: - case GTK_SELECTION_MULTIPLE: - s = "extended"; - } - xmlSetProp (node, (const guchar *)"selection-mode", (guchar *) s); - if (specification->cursor_mode == E_CURSOR_LINE) - s = "line"; - else - s = "cell"; - xmlSetProp (node, (const guchar *)"cursor-mode", (guchar *) s); - - xmlSetProp (node, (const guchar *)"_click-to-add-message", (guchar *) specification->click_to_add_message); - xmlSetProp (node, (const guchar *)"gettext-domain", (guchar *) specification->domain); - - if (specification->columns) { - gint i; - - for (i = 0; specification->columns[i]; i++) - e_table_column_specification_save_to_node ( - specification->columns[i], - node); - } - - if (specification->state) - e_table_state_save_to_node (specification->state, node); - - return node; -} - diff --git a/e-util/e-table-specification.h b/e-util/e-table-specification.h index 8933a40ec2..11986bb991 100644 --- a/e-util/e-table-specification.h +++ b/e-util/e-table-specification.h @@ -95,9 +95,6 @@ void e_table_specification_load_from_node (ETableSpecification *specification, const xmlNode *node); -xmlNode * e_table_specification_save_to_node - (ETableSpecification *specification); - G_END_DECLS #endif /* E_TABLE_SPECIFICATION_H */ |