aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mail/e-mail-shell-content.c9
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 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);