aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/print.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-02-23 14:49:31 +0800
committerHans Petter <hansp@src.gnome.org>2003-02-23 14:49:31 +0800
commit1f36e43b9464195715f676104bcf47edd9630ba3 (patch)
treeb4358d340c03d065b170f7f0c535cd622d80be1f /calendar/gui/print.c
parenteea8bc47ec3b8fc60ac9d35a160f05f84ad96604 (diff)
downloadgsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar.gz
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar.bz2
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar.lz
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar.xz
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.tar.zst
gsoc2013-evolution-1f36e43b9464195715f676104bcf47edd9630ba3.zip
Eliminate e_utf8_to_gtk_string ().
2003-02-23 Hans Petter Jansson <hpj@ximian.com> * gui/cal-search-bar.c (make_suboptions): Eliminate e_utf8_to_gtk_string (). * gui/e-timezone-entry.c (e_timezone_entry_get_display_name): Ditto. * gui/calendar-model.c (date_value_to_string): e_utf8_from_locale_string () -> g_locale_to_utf8 (). (calendar_model_value_to_string): Ditto. * gui/e-cell-date-edit-text.c (ecd_get_text): Ditto. * gui/e-itip-control.c (write_label_piece): Ditto. * gui/print.c (format_date): Ditto. (print_week_view_background): Ditto. (print_month_summary): Ditto. (print_date_label): Ditto. (print_comp_item): Ditto. * gui/alarm-notify/alarm-notify-dialog.c (write_html_heading): Ditto. svn path=/trunk/; revision=20008
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r--calendar/gui/print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 472c447b10..1b83073766 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -513,7 +513,7 @@ format_date(time_t time, int flags, char *buffer, int bufflen)
strcat(fmt, "%Y");
}
strftime(buffer, bufflen, fmt, &tm);
- utf_str = e_utf8_from_locale_string (buffer);
+ utf_str = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
strncpy (buffer, utf_str, bufflen - 1);
buffer[bufflen - 1] = '\0';
g_free (utf_str);
@@ -1525,7 +1525,7 @@ print_week_view_background (GnomePrintContext *pc, GnomeFont *font,
}
strftime (buffer, sizeof (buffer), format_string, &tm);
- utf_str = e_utf8_from_locale_string (buffer);
+ utf_str = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
print_text_size (pc, utf_str, ALIGN_RIGHT,
x1, x2 - 4, y1 - 2, y1 - 2 - font_size);
g_free (utf_str);
@@ -1748,7 +1748,7 @@ print_month_summary (GnomePrintContext *pc, GnomeCalendar *gcal, time_t whence,
x2 = x1 + cell_width;
print_border (pc, x1, x2, y1, y2, 1.0, -1.0);
- utf_str = e_utf8_from_locale_string (buffer);
+ utf_str = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
print_text_size (pc, utf_str, ALIGN_CENTER, x1, x2, y1, y2);
g_free (utf_str);
@@ -2233,7 +2233,7 @@ print_date_label (GnomePrintContext *pc, CalComponent *comp, CalClient *client,
write_label_piece (due, buffer, 1024, _("Due "), NULL);
}
- utf_text = e_utf8_from_locale_string (buffer);
+ utf_text = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
print_text_size_bold (pc, utf_text, ALIGN_LEFT,
left, right, top, top - 15);
g_free (utf_text);
@@ -2334,7 +2334,7 @@ print_comp_item (GnomePrintContext *pc, CalComponent *comp, CalClient *client,
priority_string = cal_util_priority_to_string (*priority);
cal_component_free_priority (priority);
- priority_utf8 = e_utf8_from_locale_string (priority_string);
+ priority_utf8 = g_locale_to_utf8 (priority_string, -1, NULL, NULL, NULL);
text = g_strdup_printf (_("Priority: %s"),
priority_utf8);
top = bound_text (pc, font, text,