aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 27d00f3516..ad316e1177 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -1872,7 +1872,11 @@ mail_reader_message_selected_timeout_cb (EMailReader *reader)
widget = GTK_WIDGET (EM_FORMAT_HTML (html_display)->html);
+#if GTK_CHECK_VERSION(2,19,7)
+ html_display_visible = gtk_widget_get_mapped (widget);
+#else
html_display_visible = GTK_WIDGET_MAPPED (widget);
+#endif
selected_uid_changed = g_strcmp0 (cursor_uid, format_uid);
if (html_display_visible && selected_uid_changed) {