From fbf56b4c56143ef9487e5e454d906e83fe2ef4a2 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 4 Mar 2003 22:03:22 +0000 Subject: Fixes #37806, #37697 2003-03-04 JP Rosevear Fixes #37806, #37697 * gui/e-itip-control.c (e_itip_control_set_data): if the text is null or the empty string, just clear the widget (init): set the html widget to initially be blank svn path=/trunk/; revision=20155 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/e-itip-control.c | 10 ++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fc3b43ab14..b49c08bbd8 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2003-03-04 JP Rosevear + + Fixes #37806, #37697 + + * gui/e-itip-control.c (e_itip_control_set_data): if the text is + null or the empty string, just clear the widget + (init): set the html widget to initially be blank + 2003-03-04 JP Rosevear * pcs/cal.c (impl_Cal_get_ldap_attribute): implement 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 (); -- cgit v1.2.3