diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-12 04:45:27 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-12 04:45:27 +0800 |
commit | de02508770a38e596ea7ea00fec78d45aaefa551 (patch) | |
tree | 6bfa862a53c2bc71dd2af028561eb3162c56ea43 /mail | |
parent | 39bc77da508f61f1c2c89db68eb6a4b12c1fad00 (diff) | |
download | gsoc2013-evolution-de02508770a38e596ea7ea00fec78d45aaefa551.tar.gz gsoc2013-evolution-de02508770a38e596ea7ea00fec78d45aaefa551.tar.zst gsoc2013-evolution-de02508770a38e596ea7ea00fec78d45aaefa551.zip |
Set mail_display->destroyed = TRUE. This is a workaround for the
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
svn path=/trunk/; revision=19883
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-display.c | 21 | ||||
-rw-r--r-- | mail/mail-display.h | 1 |
3 files changed, 15 insertions, 13 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index fe013dc0b0..8d44e9c486 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-02-11 Jeffrey Stedfast <fejj@ximian.com> + + * mail-display.c (mail_display_destroy): Set + mail_display->destroyed = TRUE. This is a workaround for the + GTK_OBJECT_DESTROYED() macro that we used to use before. + 2003-02-10 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (build_tree): Use g_signal_emit() rather than diff --git a/mail/mail-display.c b/mail/mail-display.c index 13806902b8..0e18044f21 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1588,12 +1588,9 @@ static void load_content_loaded (struct _mail_msg *mm) { struct _load_content_msg *m = (struct _load_content_msg *)mm; - -#warning "object_destroy check?" -#if 0 - if (GTK_OBJECT_DESTROYED (m->display)) + + if (m->display->destroyed) return; -#endif if (m->display->current_message == m->message) { if (m->handle) { @@ -1637,11 +1634,9 @@ stream_write_or_redisplay_when_loaded (MailDisplay *md, struct _load_content_msg *m; GHashTable *loading; -#if 0 -#warning "GTK_OBJECT_DESTROYED" - if (GTK_OBJECT_DESTROYED (md)) + if (md->destroyed) return; -#endif + loading = g_datalist_get_data (md->data, "loading"); if (loading) { if (g_hash_table_lookup (loading, key)) @@ -1909,11 +1904,9 @@ mail_display_render (MailDisplay *md, GtkHTML *html, gboolean reset_scroll) void mail_display_redisplay (MailDisplay *md, gboolean reset_scroll) { -#if 0 -#warning "GTK_OBJECT_DESTROYED" - if (GTK_OBJECT_DESTROYED (md)) + if (md->destroyed) return; -#endif + fetch_cancel(md); md->last_active = NULL; @@ -2088,6 +2081,8 @@ mail_display_destroy (GtkObject *object) g_free (mail_display->priv); mail_display->priv = NULL; + mail_display->destroyed = TRUE; + mail_display_parent_class->destroy (object); } diff --git a/mail/mail-display.h b/mail/mail-display.h index 98d6d787ad..fe95c95490 100644 --- a/mail/mail-display.h +++ b/mail/mail-display.h @@ -79,6 +79,7 @@ struct _MailDisplay { MailConfigDisplayStyle display_style; guint printing : 1; + guint destroyed: 1; }; typedef struct { |