[tasks] Fix description property setting to correctly handle non-ASCII (MB#7190)



commit 765242cb4c83ec958abbe86b7b07a2aa704a6e8b
Author: Ross Burton <ross linux intel com>
Date:   Mon Oct 26 12:33:30 2009 +0000

    Fix description property setting to correctly handle non-ASCII (MB#7190)

 libkoto/koto-field-editor-factory.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libkoto/koto-field-editor-factory.c b/libkoto/koto-field-editor-factory.c
index d0e5328..4a35ac2 100644
--- a/libkoto/koto-field-editor-factory.c
+++ b/libkoto/koto-field-editor-factory.c
@@ -280,7 +280,7 @@ on_text_changed (GtkTextBuffer *buffer)
   FieldData *data;
   GtkWidget *widget;
   GtkTextIter start, end;
-  char *text, *escaped;
+  char *text;
 
   widget = g_object_get_data (G_OBJECT (buffer), "koto-real-widget");
   if (!widget) {
@@ -304,13 +304,9 @@ on_text_changed (GtkTextBuffer *buffer)
   gtk_text_buffer_get_end_iter (buffer, &end);
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
 
-  escaped = g_strescape (text, NULL);
+  icalproperty_set_value (data->prop, icalvalue_new_text (text));
   g_free (text);
 
-  /* NO means use the default value type. Ugly as sin. */
-  icalproperty_set_value_from_string (data->prop, escaped, "NO");
-  g_free (escaped);
-
   *data->dirty = TRUE;
 
   return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]