aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-03-28 05:37:07 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-03-28 05:37:07 +0800
commitc6ed3eedc881b57ac7d767a282413db7966f8a8b (patch)
tree18ded69ef658a974fc9c012ac09c63c9ed9f3858 /my-evolution/e-summary-weather.c
parenta764639cd2f9f85da377fa6987c10bc1005d74ef (diff)
downloadgsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar.gz
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar.bz2
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar.lz
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar.xz
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.tar.zst
gsoc2013-evolution-c6ed3eedc881b57ac7d767a282413db7966f8a8b.zip
Likewise.
* e-summary.c (e_summary_init): Likewise. * e-summary-weather.c (e_summary_weather_get_html): Likewise. (weather_make_html): Likewise. * e-summary-mail.c (e_summary_mail_generate_html): Fix so it handles the fact that the translated strings are already in UTF8. * e-summary-rdf.c (tree_walk): Likewise. (display_doc): Likewise. svn path=/trunk/; revision=20553
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r--my-evolution/e-summary-weather.c28
1 files changed, 9 insertions, 19 deletions
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c
index a6a2497370..27bb777083 100644
--- a/my-evolution/e-summary-weather.c
+++ b/my-evolution/e-summary-weather.c
@@ -70,10 +70,9 @@ e_summary_weather_get_html (ESummary *summary)
string = g_string_new ("<dl><img src=\"ico-weather.png\" align=\"middle\" "
"alt=\"\" width=\"48\" height=\"48\"><b>"
"<a href=\"http://www.metoffice.gov.uk\">");
- s = e_utf8_from_locale_string (_("My Weather"));
- g_string_append (string, s);
- g_free (s);
+ g_string_append (string, _("My Weather"));
g_string_append (string, "</a></b>");
+
for (weathers = summary->weather->weathers; weathers; weathers = weathers->next) {
if (((Weather *)weathers->data)->html == NULL) {
continue;
@@ -133,17 +132,12 @@ weather_make_html (Weather *w)
temp = weather_temp_string (w);
cond = (char *) weather_conditions_string (w);
- s = e_utf8_from_locale_string (sky);
- g_string_append (string, s);
- g_free (s);
+ g_string_append (string, sky);
g_string_append_c (string, ' ');
- s = e_utf8_from_locale_string (cond);
- g_string_append (string, s);
- g_free (s);
+ g_string_append (string, cond);
g_string_append_c (string, ' ');
- s = e_utf8_from_locale_string (temp);
- g_string_append (string, s);
- g_free (s);
+ g_string_append (string, temp);
+
g_free (temp);
#if 0
@@ -256,7 +250,6 @@ message_finished (SoupMessage *msg,
}
if (SOUP_MESSAGE_IS_ERROR (msg)) {
- char *mess;
ESummaryWeatherLocation *location;
g_warning ("Message failed: %d\n%s", msg->errorcode,
@@ -265,12 +258,9 @@ message_finished (SoupMessage *msg,
location = g_hash_table_lookup (locations_hash, w->location);
- mess = g_strdup_printf ("<br><b>%s %s</b></br>",
- _("There was an error downloading data for"),
- location ? location->name : w->location);
-
- w->html = e_utf8_from_locale_string (mess);
- g_free (mess);
+ w->html = g_strdup_printf ("<br><b>%s %s</b></br>",
+ _("There was an error downloading data for"),
+ location ? location->name : w->location);
e_summary_draw (w->summary);
return;