From 1dd4c129bda1f84a9f2906f8f5cf0287c1edf060 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 26 Mar 2010 11:32:54 -0400 Subject: Fix build break due to GTK+ deprecations. --- modules/mail/e-mail-shell-sidebar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/mail/e-mail-shell-sidebar.c') 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 -- cgit