diff options
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index e5f3b83c67..f2c0c93d8f 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -309,6 +309,7 @@ init (EItipControl *itip) priv->html = gtk_html_new (); gtk_html_set_default_content_type (GTK_HTML (priv->html), "text/html; charset=utf-8"); + gtk_html_load_from_string (GTK_HTML (priv->html), " ", 1); gtk_widget_show (priv->html); scrolled_window = gtk_scrolled_window_new (NULL, NULL); @@ -1548,10 +1549,11 @@ e_itip_control_set_data (EItipControl *itip, const gchar *text) clean_up (itip); - priv->comp = NULL; - priv->total = 0; - priv->current = 0; - + if (text == NULL || *text == '\0') { + gtk_html_load_from_string (GTK_HTML (priv->html), " ", 1); + return; + } + priv->vcalendar = g_strdup (text); priv->top_level = cal_util_new_top_level (); |