[evolution-rss] fix update on manual fetch
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-rss] fix update on manual fetch
- Date: Tue, 7 Jul 2009 07:18:42 +0000 (UTC)
commit 99d4b1319206958d541af67b2142976b0532555b
Author: Lucian Langa <lucilanga gnome org>
Date: Tue Jul 7 10:18:32 2009 +0300
fix update on manual fetch
src/rss.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 56becaf..b51b78f 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -794,6 +794,7 @@ timeout_soup(void)
{
d(g_print("Network timeout occured. Cancel active operations.\n"));
abort_all_soup();
+ rf->autoupdate = FALSE;
return FALSE;
}
@@ -2742,8 +2743,10 @@ generic_finish_feed(rfMessage *msg, gpointer user_data)
#endif
}
- if (rf->cancel_all)
+ if (rf->cancel_all) {
+ rf->autoupdate = FALSE;
goto out;
+ }
if (msg->status_code != SOUP_STATUS_OK &&
msg->status_code != SOUP_STATUS_CANCELLED) {
@@ -2759,6 +2762,7 @@ generic_finish_feed(rfMessage *msg, gpointer user_data)
if (rf->cancel) {
#ifdef EVOLUTION_2_12
if(rf->label && rf->feed_queue == 0 && rf->info) {
+ rf->autoupdate = FALSE;
farticle=0;
ftotal=0;
gtk_label_set_markup (GTK_LABEL (rf->label), _("Canceled."));
@@ -2858,6 +2862,7 @@ generic_finish_feed(rfMessage *msg, gpointer user_data)
g_free(furl);
}
if(rf->label && rf->feed_queue == 0 && rf->info) {
+ rf->autoupdate = FALSE;
farticle=0;
ftotal=0;
gtk_label_set_markup (GTK_LABEL (rf->label), _("Complete"));
@@ -3936,6 +3941,7 @@ org_gnome_cooly_rss_refresh(void *ep, EMPopupTargetSelect *t)
flabel = label2;
}
if (!rf->pending && !rf->feed_queue) {
+ rf->autoupdate = FALSE;
rf->pending = TRUE;
check_folders();
@@ -4124,6 +4130,7 @@ org_gnome_cooly_rss(void *ep, EMPopupTargetSelect *t)
}
#endif
if (!rf->pending && !rf->feed_queue) {
+ rf->autoupdate = FALSE;
rf->pending = TRUE;
check_folders();
@@ -4140,8 +4147,6 @@ org_gnome_cooly_rss(void *ep, EMPopupTargetSelect *t)
}
-//camel_store_subscribe_folder (store, ->node->info->full_name, &mm->ex);
-//camel_store_subscribe_folder (store, "www", NULL);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]