aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--my-evolution/ChangeLog7
-rw-r--r--my-evolution/e-summary-rdf.c6
-rw-r--r--my-evolution/e-summary-weather.c9
3 files changed, 21 insertions, 1 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index b3483fae32..e975464450 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,12 @@
2001-10-10 Iain Holmes <iain@ximian.com>
+ * e-summary-weather.c (e_summary_weather_update): Return a value.
+ Only repoll if the summary is online.
+
+ * e-summary-rdf.c (e_summary_rdf_update): Only poll if online
+
+2001-10-10 Iain Holmes <iain@ximian.com>
+
* my-evolution.glade: Set the minimum length of time for updates to
5 minutes.
diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c
index fb2c1ccfae..1b54cb2288 100644
--- a/my-evolution/e-summary-rdf.c
+++ b/my-evolution/e-summary-rdf.c
@@ -433,6 +433,11 @@ e_summary_rdf_update (ESummary *summary)
{
GList *r;
+ if (summary->rdf->online == FALSE) {
+ g_warning ("%s: Repolling but offline", __FUNCTION__);
+ return TRUE;
+ }
+
for (r = summary->rdf->rdfs; r; r = r->next) {
RDF *rdf = r->data;
@@ -604,6 +609,7 @@ e_summary_rdf_init (ESummary *summary)
connection->callback_closure = NULL;
rdf->connection = connection;
+ rdf->online = TRUE;
e_summary_add_online_connection (summary, connection);
e_summary_add_protocol_listener (summary, "rdf", e_summary_rdf_protocol, rdf);
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c
index 3b562913c5..070e5ed618 100644
--- a/my-evolution/e-summary-weather.c
+++ b/my-evolution/e-summary-weather.c
@@ -364,11 +364,16 @@ open_callback (GnomeVFSAsyncHandle *handle,
(GnomeVFSAsyncReadCallback) read_callback, w);
}
-static void
+static gboolean
e_summary_weather_update (ESummary *summary)
{
GList *w;
+ if (summary->weather->online == FALSE) {
+ g_warning ("%s: Repolling but offline", __FUNCTION__);
+ return TRUE;
+ }
+
summary->weather->errorshown = FALSE;
for (w = summary->weather->weathers; w; w = w->next) {
char *uri;
@@ -380,6 +385,8 @@ e_summary_weather_update (ESummary *summary)
(GnomeVFSAsyncOpenCallback) open_callback, weather);
g_free (uri);
}
+
+ return TRUE;
}
static void