diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-05-02 07:26:42 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-05-02 07:26:42 +0800 |
commit | e1f208de7dfadbd84d2e5aa75204f04f60ad49e0 (patch) | |
tree | 08088fc548e31986fc29b715d489eb6389fd77d4 /widgets/table/e-table-specification.c | |
parent | 6be9006f3fa356bf1402067ec60aa278871562bb (diff) | |
download | gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.tar.gz gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.tar.zst gsoc2013-evolution-e1f208de7dfadbd84d2e5aa75204f04f60ad49e0.zip |
Set the gettext-domain here.
2002-05-01 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-completion-view.c (simple_spec),
gal/widgets/e-categories-master-list-dialog.c (SPEC),
gal/widgets/e-categories.c (INITIAL_SPEC): Set the gettext-domain
here.
* gal/util/e-i18n.h (E_I18N_DOMAIN): #define as makes sense in the
different cases.
From gal/e-table/ChangeLog:
2002-05-01 Christopher James Lahey <clahey@ximian.com>
* e-table-config.c, e-table-config.h, e-table-specification.c,
e-table-specification.h, e-table-utils.c, e-table-utils.h,
e-table.c, e-table.h: Made these pay attention to the
gettext-domain in the etspec.
* e-table-config.c: Set the gettext-domain in the etspec here.
From gal/menus/ChangeLog:
2002-05-01 Christopher James Lahey <clahey@ximian.com>
* gal-define-views-dialog.c (SPEC),
gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain
here.
svn path=/trunk/; revision=16658
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; |