From 2fc0744447411e015e1ed3180bbe160acbcb57f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 13 Dec 2000 00:58:12 +0000 Subject: Don't convert the utf-8 string to a gtkstring because the widget expects 2000-12-12 Jeffrey Stedfast * e-msg-composer-hdrs.c (set_entry): Don't convert the utf-8 string to a gtkstring because the widget expects to get a utf-8 string. svn path=/trunk/; revision=6960 --- composer/e-msg-composer-hdrs.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'composer/e-msg-composer-hdrs.c') diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 0ab2b76829..647ba2b3f1 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -492,20 +492,16 @@ set_entry (BonoboWidget *bonobo_widget, { GString *string; const GList *p; - char *s; - - string = g_string_new (NULL); + + string = g_string_new (""); for (p = list; p != NULL; p = p->next) { if (string->str[0] != '\0') g_string_append (string, ", "); g_string_append (string, p->data); } - - /* FIXME: This is just a temporary workaround, the widget should grok it */ - s = e_utf8_to_gtk_string((GtkWidget *)bonobo_widget, string->str); - bonobo_widget_set_property (BONOBO_WIDGET (bonobo_widget), "text", s, NULL); - - g_free(s); + + bonobo_widget_set_property (BONOBO_WIDGET (bonobo_widget), "text", string->str, NULL); + g_string_free (string, TRUE); } -- cgit v1.2.3