From 1f36e43b9464195715f676104bcf47edd9630ba3 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Sun, 23 Feb 2003 06:49:31 +0000 Subject: Eliminate e_utf8_to_gtk_string (). 2003-02-23 Hans Petter Jansson * 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 --- calendar/gui/calendar-model.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'calendar/gui/calendar-model.c') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index ce981fb144..94cc4e6219 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -1672,7 +1672,7 @@ date_value_to_string (ETableModel *etm, const void *value) e_time_format_date_and_time (&tmp_tm, priv->use_24_hour_format, TRUE, FALSE, buffer, sizeof (buffer)); - return e_utf8_from_locale_string (buffer); + return g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL); } @@ -1700,17 +1700,17 @@ calendar_model_value_to_string (ETableModel *etm, int col, const void *value) case CAL_COMPONENT_FIELD_ICON: if (GPOINTER_TO_INT (value) == 0) - return e_utf8_from_locale_string (_("Normal")); + return g_locale_to_utf8 (_("Normal"), -1, NULL, NULL, NULL); else if (GPOINTER_TO_INT (value) == 1) - return e_utf8_from_locale_string (_("Recurring")); + return g_locale_to_utf8 (_("Recurring"), -1, NULL, NULL, NULL); else - return e_utf8_from_locale_string (_("Assigned")); + return g_locale_to_utf8 (_("Assigned"), -1, NULL, NULL, NULL); case CAL_COMPONENT_FIELD_HAS_ALARMS: case CAL_COMPONENT_FIELD_COMPLETE: case CAL_COMPONENT_FIELD_RECURRING: case CAL_COMPONENT_FIELD_OVERDUE: - return e_utf8_from_locale_string (value ? _("Yes") : _("No")); + return g_locale_to_utf8 (value ? _("Yes") : _("No"), -1, NULL, NULL, NULL); case CAL_COMPONENT_FIELD_COLOR: return NULL; -- cgit v1.2.3