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/ChangeLog | 8 ++++++++ calendar/gui/e-calendar-view.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 141c4800a8..3d4f86aa58 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +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. + 2007-05-11 Srinivasa Ragavan * gui/GNOME_Evolution_Calendar.server.in.in: Add tango icon to 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