[evolution-rss/evolution-rss-0-2-0] fix init rss hooks for older evo versions



commit 1b481f686684e1a5ad5526d8d58a4bf090fd6607
Author: Lucian Langa <lucilanga gnome org>
Date:   Sat Jan 29 16:08:29 2011 +0200

    fix init rss hooks for older evo versions

 src/rss.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 97f6418..8d61407 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -4629,6 +4629,9 @@ void org_gnome_cooly_rss_startup(void *ep, ESEventTargetUpgrade *t)
 	custom_feed_timeout();
 
 	rss_load_images();
+#if EVOLUTION_VERSION < 22900
+	rss_hooks_init();
+#endif
 }
 
 /* check if rss folders exists and create'em otherwise */
@@ -5025,13 +5028,6 @@ if (engine == 1) {
 	return 0;
 }
 
-#if EVOLUTION_VERSION >= 22900
-void quit_cb(void *ep, EShellView *shell_view)
-{
-	g_print("RSS: Preparing to quit...\n");
-	rf->cancel_all=1;
-}
-
 void rss_hooks_init(void)
 {
 	CamelStore *store;
@@ -5050,6 +5046,14 @@ void rss_hooks_init(void)
 #endif
 }
 
+
+#if EVOLUTION_VERSION >= 22900
+void quit_cb(void *ep, EShellView *shell_view)
+{
+	g_print("RSS: Preparing to quit...\n");
+	rf->cancel_all=1;
+}
+
 gboolean e_plugin_ui_init (GtkUIManager *ui_manager,
 	EShellView *shell_view);
 



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