[evolution-rss] Don't break the build when building against Evolution older than 3.11.3



commit 8a3e7574c6fa7ee5d9e8baf5db40e4612a04ec68
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Sun Jan 12 00:55:12 2014 +0100

    Don't break the build when building against Evolution older than 3.11.3

 src/rss-image.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/rss-image.c b/src/rss-image.c
index 3a3bd86..e9e3c1a 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -539,6 +539,9 @@ display_folder_icon(GtkTreeStore *tree_store, gchar *key)
        GtkTreePath *path;
        GtkTreeRowReference *row;
        EMFolderTreeModel *mod = (EMFolderTreeModel *)tree_store;
+#if (EVOLUTION_VERSION < 31103)
+       struct _EMFolderTreeModelStoreInfo *si;
+#endif
        CamelStore *store = rss_component_peek_local_store();
        CamelFolderInfo *rssi = NULL;
        gint i=0, size;
@@ -588,8 +591,14 @@ display_folder_icon(GtkTreeStore *tree_store, gchar *key)
                                icon);
                g_free(sizes);
 
+#if (EVOLUTION_VERSION < 31103)
+               si = em_folder_tree_model_lookup_store_info (
+                       EM_FOLDER_TREE_MODEL (mod), store);
+               row = g_hash_table_lookup (si->full_hash, full_name);
+#else
                row = em_folder_tree_model_get_row_reference (
                        EM_FOLDER_TREE_MODEL (mod), store, full_name);
+#endif
                if (!row) goto out;
                path = gtk_tree_row_reference_get_path (row);
                gtk_tree_model_get_iter (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]