aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-05 12:38:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-05 20:36:23 +0800
commit2836a54dd6d61e35d1446f9a23a628064516a309 (patch)
treeb9cb2ab39212de803e935ed28957ee77e73c2d96 /mail/message-list.c
parentbaa7f20333a5bbb7c8cbb3cf2ce86b57aba79ef2 (diff)
downloadgsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.gz
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.tar.zst
gsoc2013-evolution-2836a54dd6d61e35d1446f9a23a628064516a309.zip
Work around recent GTK+ deprecations.
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 277b116019..652695065f 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -4715,7 +4715,11 @@ regen_list_done (struct _regen_list_msg *m)
}
}
+#if GTK_CHECK_VERSION(2,19,7)
+ if (gtk_widget_get_visible (GTK_WIDGET (m->ml))) {
+#else
if (GTK_WIDGET_VISIBLE (GTK_WIDGET (m->ml))) {
+#endif
if (message_list_length (m->ml) <= 0) {
/* space is used to indicate no search too */
if (m->ml->search && *m->ml->search && strcmp (m->ml->search, " ") != 0)
@@ -4882,7 +4886,11 @@ mail_regen_list (MessageList *ml, const gchar *search, const gchar *hideexpr, Ca
}
if (message_list_length (ml) <= 0) {
+#if GTK_CHECK_VERSION(2,19,7)
+ if (gtk_widget_get_visible (GTK_WIDGET (ml))) {
+#else
if (GTK_WIDGET_VISIBLE (GTK_WIDGET (ml))) {
+#endif
/* there is some info why the message list is empty, let it be something useful */
gchar *txt = g_strconcat (_("Generating message list"), "..." , NULL);