aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-26 23:32:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-26 23:32:54 +0800
commit1dd4c129bda1f84a9f2906f8f5cf0287c1edf060 (patch)
tree2242caaaa99a59344ec2adea8da478d8ec3935f3 /modules/mail
parent7f6f4dfde87156779c89f57b0ebc8150c7acca7e (diff)
downloadgsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar.gz
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar.bz2
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar.lz
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar.xz
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.tar.zst
gsoc2013-evolution-1dd4c129bda1f84a9f2906f8f5cf0287c1edf060.zip
Fix build break due to GTK+ deprecations.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-sidebar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-sidebar.c b/modules/mail/e-mail-shell-sidebar.c
index 42376ca52a..ebe72bf629 100644
--- a/modules/mail/e-mail-shell-sidebar.c
+++ b/modules/mail/e-mail-shell-sidebar.c
@@ -196,7 +196,11 @@ guess_screen_width (EMailShellSidebar *sidebar)
GdkRectangle rect;
toplevel = gtk_widget_get_toplevel (widget);
+#if GTK_CHECK_VERSION(2,19,7)
+ if (toplevel && gtk_widget_get_realized (toplevel))
+#else
if (toplevel && GTK_WIDGET_REALIZED (toplevel))
+#endif
monitor = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (toplevel));
else {
/* We don't know in which monitor the window manager