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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
39bc77da50
commit
de02508770
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -79,6 +79,7 @@ struct _MailDisplay {
|
||||
MailConfigDisplayStyle display_style;
|
||||
|
||||
guint printing : 1;
|
||||
guint destroyed: 1;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user