aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-26 14:43:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-26 14:43:31 +0800
commit989e19963822b5dc48d0074f876a29c695f63158 (patch)
tree872a102e427cac6af166237bb9dd763384082743 /mail/message-list.c
parent66442571c9fa464dae8b5f0eada5501183cc6656 (diff)
downloadgsoc2013-evolution-989e19963822b5dc48d0074f876a29c695f63158.tar.gz
gsoc2013-evolution-989e19963822b5dc48d0074f876a29c695f63158.tar.zst
gsoc2013-evolution-989e19963822b5dc48d0074f876a29c695f63158.zip
gtk_widget_set_parent_window -> gtk_window_set_transient_for.
2002-11-26 Not Zed <NotZed@Ximian.com> * mail-account-editor.c (mail_account_editor_new): gtk_widget_set_parent_window -> gtk_window_set_transient_for. * mail-callbacks.c (composer_send_queued_cb): dont unref composer. * message-browser.c (message_browser_destroy): moved back from finalise. 2002-11-25 Not Zed <NotZed@Ximian.com> * message-list.c (message_list_dispose): move saving tree state here. (message_list_finalise): And take it from here. * mail-display.c (mail_display_destroy): @#$@# gtk. changed this around a bit. (mail_display_init): Fix prototype, its a gobject. (mail_display_init): ref/sink the invisible gtkobject. svn path=/trunk/; revision=18919
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 810253bd4e..24139fa9c1 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -1261,6 +1261,19 @@ normalised_free (gpointer key, gpointer value, gpointer user_data)
}
static void
+message_list_dispose(GObject *object)
+{
+ MessageList *message_list = MESSAGE_LIST (object);
+
+ if (message_list->folder) {
+ save_tree_state(message_list);
+ hide_save_state(message_list);
+ }
+
+ G_OBJECT_CLASS (message_list_parent_class)->dispose(object);
+}
+
+static void
message_list_finalise (GObject *object)
{
MessageList *message_list = MESSAGE_LIST (object);
@@ -1271,9 +1284,6 @@ message_list_finalise (GObject *object)
g_hash_table_destroy (message_list->normalised_hash);
if (message_list->folder) {
- save_tree_state(message_list);
- hide_save_state(message_list);
-
camel_object_unhook_event(message_list->folder, "folder_changed", folder_changed, message_list);
camel_object_unhook_event(message_list->folder, "message_changed", message_changed, message_list);
camel_object_unref (message_list->folder);
@@ -1321,6 +1331,7 @@ message_list_class_init (GObjectClass *object_class)
message_list_parent_class = g_type_class_ref(PARENT_TYPE);
object_class->finalize = message_list_finalise;
+ object_class->dispose = message_list_dispose;
message_list_signals[MESSAGE_SELECTED] =
g_signal_new ("message_selected",