aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 1f2ee35a84..d66f2ab508 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -977,7 +977,11 @@ mail_send_receive (GtkWindow *parent)
GList *scan;
if (send_recv_dialog != NULL) {
+#if GTK_CHECK_VERSION(2,19,7)
+ if (parent != NULL && gtk_widget_get_realized (send_recv_dialog)) {
+#else
if (parent != NULL && GTK_WIDGET_REALIZED (send_recv_dialog)) {
+#endif
gdk_window_show (send_recv_dialog->window);
gdk_window_raise (send_recv_dialog->window);
}