diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-10-11 03:54:28 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-10-11 03:54:28 +0800 |
commit | 44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8 (patch) | |
tree | 65913a083490d2ee70118166b618a644ad920165 /my-evolution/e-summary-weather.c | |
parent | 6e1a9c1903b5ae66cd267e675e6f50034e12ba85 (diff) | |
download | gsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.tar.gz gsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.tar.zst gsoc2013-evolution-44f3c6d906ce7d69637b5bd5ac82059f8c0c0ab8.zip |
Fixed polling in offline mode
svn path=/trunk/; revision=13562
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r-- | my-evolution/e-summary-weather.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 |