[evolution-rss] add missing ifdefs



commit cfcc72858cac27e21f704ec3fc4e5db243f5261e
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue May 10 16:48:30 2011 +0300

    add missing ifdefs

 src/rss-config-factory.c |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index 05d196c..c2e8ae3 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -459,7 +459,9 @@ folder_cb (GtkWidget *widget, gpointer data)
 	GtkWindow *window;
 	const gchar *uri;
 	struct _copy_folder_data *cfd;
+#if EVOLUTION_VERSION >= 30101
 	GError *error = NULL;
+#endif
 
 	EMailReader *reader;
 	EShellContent *shell_content;
@@ -504,16 +506,18 @@ folder_cb (GtkWidget *widget, gpointer data)
 #endif
 	cfd->delete = 1;
 
+#if EVOLUTION_VERSION >= 30101
 	e_mail_folder_uri_parse (
-               CAMEL_SESSION (session), folderinfo,
-               &cfd->source_store, &cfd->source_folder_name, &error);
-
-       if (error != NULL) {
-               g_warning ("%s", error->message);
-               g_error_free (error);
-               g_free (cfd);
-               return;
-       }
+		CAMEL_SESSION (session), folderinfo,
+		&cfd->source_store, &cfd->source_folder_name, &error);
+
+	if (error != NULL) {
+		g_warning ("%s", error->message);
+		g_error_free (error);
+		g_free (cfd);
+		return;
+	}
+#endif
 
 	if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) {
 		gchar *tmp;



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