From 79776e06918e76d556564365b509a2895b5f9886 Mon Sep 17 00:00:00 2001 From: "simon.zheng" Date: Sat, 12 May 2007 11:16:45 +0000 Subject: ** Fix for bug #427789 2007-05-12 simon.zheng ** Fix for bug #427789 * gui/e-calendar-view.c: (e_calendar_view_copy_clipboard): The last arguments in API gtk_clipboard_set_text() should be the length of string in bytes rather than in characters. svn path=/trunk/; revision=33519 --- calendar/gui/e-calendar-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index c97dc3df59..f8cd8d212f 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -765,7 +765,7 @@ e_calendar_view_copy_clipboard (ECalendarView *cal_view) comp_str = icalcomponent_as_ical_string (vcal_comp); gtk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (cal_view), clipboard_atom), (const gchar *) comp_str, - g_utf8_strlen (comp_str, -1)); + strlen (comp_str)); /* free memory */ icalcomponent_free (vcal_comp); -- cgit v1.2.3