[evolution] Bug 593700 - Opens folder on top



commit af155cd7a614aa79398ee24b48441e580d4afbad
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Sep 28 19:31:28 2009 -0400

    Bug 593700 - Opens folder on top

 modules/mail/e-mail-shell-content.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index c1e4c13..465022a 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]