evolution-rss r360 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r360 - in trunk: . src
- Date: Thu, 21 Aug 2008 19:18:35 +0000 (UTC)
Author: lucilanga
Date: Thu Aug 21 19:18:35 2008
New Revision: 360
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=360&view=rev
Log:
2008-08-21 Lucian Langa <lucilanga gnome org>
* fix for #548829: Allow canceling
feed startup
Modified:
trunk/ChangeLog
trunk/src/rss.c
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Thu Aug 21 19:18:35 2008
@@ -423,6 +423,8 @@
fraction = (float)progress->current / progress->total;
while (gtk_events_pending ())
gtk_main_iteration ();
+ if (rf->cancel_all)
+ break;
#ifndef EVOLUTION_2_12
if (rf->progress_dialog && 0 <= fraction && 1 >= fraction)
{
@@ -2327,6 +2329,10 @@
if (!key)
deleted = 1;
+ MailComponent *mc = mail_component_peek ();
+ if (mc->priv->quit_state != -1)
+ rf->cancel_all=1;
+
d(g_print("taskbar_op_finish() queue:%d\n", rf->feed_queue));
if (rf->feed_queue)
@@ -2543,6 +2549,7 @@
GtkWidget *ed;
RDF *r;
+
//exclude feeds that have special update interval or
//no update at all
if (GPOINTER_TO_INT(g_hash_table_lookup(rf->hrupdate, lookup_key(key))) >= 2
@@ -2583,7 +2590,12 @@
gboolean
update_articles(gboolean disabler)
{
- if (!rf->pending && !rf->feed_queue && rf->online)
+ MailComponent *mc = mail_component_peek ();
+ g_print("stAte:%d\n", mc->priv->quit_state);
+ if (mc->priv->quit_state != -1)
+ rf->cancel=1;
+
+ if (!rf->pending && !rf->feed_queue && !rf->cancel_all && rf->online)
{
g_print("Reading RSS articles...\n");
rf->pending = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]