diff options
Diffstat (limited to 'widgets/table/e-table-specification.c')
-rw-r--r-- | widgets/table/e-table-specification.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index e449d4e9b7..4c04d78c80 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -54,9 +54,12 @@ etsp_destroy (GtkObject *object) gtk_object_unref (GTK_OBJECT (etsp->state)); g_free (etsp->click_to_add_message); + g_free (etsp->domain); + etsp->columns = NULL; etsp->state = NULL; etsp->click_to_add_message = NULL; + etsp->domain = NULL; GTK_OBJECT_CLASS (etsp_parent_class)->destroy (object); } @@ -90,6 +93,7 @@ etsp_init (ETableSpecification *etsp) etsp->selection_mode = GTK_SELECTION_MULTIPLE; etsp->click_to_add_message = NULL; + etsp->domain = NULL; } E_MAKE_TYPE (e_table_specification, "ETableSpecification", ETableSpecification, etsp_class_init, etsp_init, PARENT_TYPE) @@ -214,12 +218,21 @@ e_table_specification_load_from_node (ETableSpecification *specification, specification->cursor_mode = E_CURSOR_SPREADSHEET; } g_free (temp); - g_free (specification->click_to_add_message); + g_free (specification->click_to_add_message); specification->click_to_add_message = e_xml_get_string_prop_by_name ( node, "_click-to-add-message"); + g_free (specification->domain); + specification->domain = + e_xml_get_string_prop_by_name ( + node, "gettext-domain"); + if (specification->domain && !*specification->domain) { + g_free (specification->domain); + specification->domain = NULL; + } + if (specification->state) gtk_object_unref (GTK_OBJECT (specification->state)); specification->state = NULL; @@ -359,6 +372,7 @@ e_table_specification_save_to_node (ETableSpecification *specification, xmlSetProp (node, "cursor-mode", s); xmlSetProp (node, "_click-to-add-message", specification->click_to_add_message); + xmlSetProp (node, "gettext-domain", specification->domain); if (specification->columns){ int i; |