aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-attachment-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r--mail/e-mail-attachment-bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c
index 8461faf0c9..88198438b7 100644
--- a/mail/e-mail-attachment-bar.c
+++ b/mail/e-mail-attachment-bar.c
@@ -322,7 +322,11 @@ mail_attachment_bar_size_request (GtkWidget *widget,
* get a sizable gap between the headers and body when this
* widget is invisible. Once we finally move to WebKit,
* remove this. */
+#if GTK_CHECK_VERSION(2,19,7)
+ if (!gtk_widget_get_visible (widget)) {
+#else
if (!GTK_WIDGET_VISIBLE (widget)) {
+#endif
requisition->width = 0;
requisition->height = 0;
return;