aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-xml-utils.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-11 07:33:25 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-11 07:33:25 +0800
commit8350463f8446783935dee97d9dc54e7d17c277aa (patch)
tree4ba270eac3a19e63c7dab7556e814a64e02d2de7 /e-util/e-xml-utils.h
parent1991d205daa7f5b5754ba67328996c904dc26ecd (diff)
downloadgsoc2013-evolution-8350463f8446783935dee97d9dc54e7d17c277aa.tar.gz
gsoc2013-evolution-8350463f8446783935dee97d9dc54e7d17c277aa.tar.zst
gsoc2013-evolution-8350463f8446783935dee97d9dc54e7d17c277aa.zip
New function to translate a string and then convert it to utf8. Acts just
2001-04-10 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-unicode.c, gal/widgets/e-unicode.h (e_xml_get_translated_utf8_string_prop_by_name): New function to translate a string and then convert it to utf8. Acts just like e_xml_get_translated_string and then calls e_utf_from_locale_string on it. * gal/util/e-xml-utils.c: Changed e_xml_get_translated_string to take a string with no underscore at the beginning and search for both that prop and the same prop with the underscore prepended. If it finds it without the underscore, it returns it. If it finds it with the underscore, it translates. * gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Reformatted these a bit. svn path=/trunk/; revision=9216
Diffstat (limited to 'e-util/e-xml-utils.h')
-rw-r--r--e-util/e-xml-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-xml-utils.h b/e-util/e-xml-utils.h
index 3a4649411c..ba102c1c3d 100644
--- a/e-util/e-xml-utils.h
+++ b/e-util/e-xml-utils.h
@@ -42,6 +42,7 @@ xmlNode *e_xml_get_child_by_name_by_lang_list (const xmlNode *parent,
xmlNode *e_xml_get_child_by_name_no_lang (const xmlNode *parent,
const gchar *name);
+
gint e_xml_get_integer_prop_by_name (const xmlNode *parent,
const xmlChar *prop_name);
gint e_xml_get_integer_prop_by_name_with_default (const xmlNode *parent,
@@ -51,6 +52,7 @@ void e_xml_set_integer_prop_by_name (xmlNode *parent,
const xmlChar *prop_name,
gint value);
+
guint e_xml_get_uint_prop_by_name (const xmlNode *parent,
const xmlChar *prop_name);
guint e_xml_get_uint_prop_by_name_with_default (const xmlNode *parent,
@@ -60,6 +62,7 @@ void e_xml_set_uint_prop_by_name (xmlNode *parent,
const xmlChar *prop_name,
guint value);
+
gboolean e_xml_get_bool_prop_by_name (const xmlNode *parent,
const xmlChar *prop_name);
gboolean e_xml_get_bool_prop_by_name_with_default (const xmlNode *parent,
@@ -78,6 +81,7 @@ void e_xml_set_double_prop_by_name ( xmlNode *parent,
const xmlChar *prop_name,
gdouble value);
+
gchar *e_xml_get_string_prop_by_name (const xmlNode *parent,
const xmlChar *prop_name);
gchar *e_xml_get_string_prop_by_name_with_default (const xmlNode *parent,