[evolution-patches] ITIP control destroy chaining patch (#45236)
- From: Hans Petter Jansson <hpj ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] ITIP control destroy chaining patch (#45236)
- Date: Fri, 08 Aug 2003 11:57:54 -0500
I'm not sure this fixes it, since I can't repro the bug myself, but at
least it doesn't seem to break anything.
--
Hans Petter
? patch
Index: gui/e-itip-control.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-itip-control.c,v
retrieving revision 1.123
diff -b -u -p -r1.123 e-itip-control.c
--- gui/e-itip-control.c 23 Jul 2003 15:05:02 -0000 1.123
+++ gui/e-itip-control.c 8 Aug 2003 18:08:12 -0000
@@ -58,7 +58,6 @@
struct _EItipControlPrivate {
GtkWidget *html;
- gboolean html_destroyed;
GPtrArray *event_clients;
CalClient *event_client;
@@ -328,7 +327,7 @@ html_destroyed (gpointer data)
priv = itip->priv;
- priv->html_destroyed = TRUE;
+ priv->html = NULL;
}
static void
@@ -360,7 +359,6 @@ init (EItipControl *itip)
/* Html Widget */
priv->html = gtk_html_new ();
- priv->html_destroyed = FALSE;
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);
@@ -437,6 +435,8 @@ destroy (GtkObject *obj)
priv = itip->priv;
priv->destroyed = TRUE;
+
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (obj);
}
static void
@@ -943,7 +943,7 @@ write_html (EItipControl *itip, const gc
priv = itip->priv;
- if (priv->html_destroyed)
+ if (priv->html == NULL)
return;
/* Html widget */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]