From af155cd7a614aa79398ee24b48441e580d4afbad Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 28 Sep 2009 19:31:28 -0400 Subject: Bug 593700 - Opens folder on top --- modules/mail/e-mail-shell-content.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c index c1e4c13eac..465022a48f 100644 --- a/modules/mail/e-mail-shell-content.c +++ b/modules/mail/e-mail-shell-content.c @@ -250,6 +250,15 @@ mail_shell_content_message_list_built_cb (EMailShellContent *mail_shell_content, mail_shell_content_scroll_timeout_cb, mail_shell_content, NULL); + /* FIXME This prevents the message list from saving the scrollbar + * position before we've had a chance to restore the position. + * It gets restored in the timeout handler we just added. */ + if (priv->message_list_scrolled_id > 0) { + g_signal_handler_disconnect ( + message_list, priv->message_list_scrolled_id); + priv->message_list_scrolled_id = 0; + } + /* FIXME This is another ugly hack to hide a side-effect of the * previous workaround. */ scrolled_window = GTK_SCROLLED_WINDOW (message_list); -- cgit v1.2.3