aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-message-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-10-02 13:34:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-10-02 13:34:36 +0800
commiteff89404e4956f1b61c77d56341cf6423e7543dc (patch)
tree39b902d8a58c5eb553ba75bf9616c1fc9d3c3e47 /mail/em-message-browser.c
parent060d4b7e0a682d2e70a5275d8db1ea2f5fb488cc (diff)
downloadgsoc2013-evolution-eff89404e4956f1b61c77d56341cf6423e7543dc.tar.gz
gsoc2013-evolution-eff89404e4956f1b61c77d56341cf6423e7543dc.tar.zst
gsoc2013-evolution-eff89404e4956f1b61c77d56341cf6423e7543dc.zip
zero out last_part if we're clearing. Uh, this fixes, but shouldn't, part
2003-10-02 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_timeout): zero out last_part if we're clearing. Uh, this fixes, but shouldn't, part of #49034. The problem is the 'last part' logic is based on the address, which can quite easily be repeated for different messages. * em-folder-view.c (emfv_list_message_selected): reverted jeff's patch for #48618, use a much simpler method. * em-message-browser.c (emmb_destroy): hook onto destroy handler, we need to destroy the messagelist ourselves, since we dont attach it to any parent window. svn path=/trunk/; revision=22785
Diffstat (limited to 'mail/em-message-browser.c')
-rw-r--r--mail/em-message-browser.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c
index 68636a2d37..f7eb7ecd49 100644
--- a/mail/em-message-browser.c
+++ b/mail/em-message-browser.c
@@ -89,9 +89,23 @@ emmb_finalise(GObject *o)
}
static void
+emmb_destroy(GtkObject *o)
+{
+ EMMessageBrowser *emmb = (EMMessageBrowser *)o;
+
+ if (emmb->view.list) {
+ gtk_widget_destroy(emmb->view.list);
+ emmb->view.list = NULL;
+ }
+
+ ((GtkObjectClass *)emmb_parent)->destroy(o);
+}
+
+static void
emmb_class_init(GObjectClass *klass)
{
klass->finalize = emmb_finalise;
+ ((GtkObjectClass *)klass)->destroy = emmb_destroy;
((EMFolderViewClass *)klass)->set_message = emmb_set_message;
((EMFolderViewClass *)klass)->activate = emmb_activate;
}