evolution-rss r229 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r229 - in trunk: . src
- Date: Wed, 26 Mar 2008 08:25:25 +0000 (GMT)
Author: lucilanga
Date: Wed Mar 26 08:25:25 2008
New Revision: 229
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=229&view=rev
Log:
fix no feeds enabled
Modified:
trunk/ChangeLog
trunk/src/rss.c
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Wed Mar 26 08:25:25 2008
@@ -2744,6 +2744,12 @@
void org_gnome_cooly_rss_refresh(void *ep, EMPopupTargetSelect *t);
+gboolean
+check_if_enabled (gpointer key, gpointer value, gpointer user_data)
+{
+ return value;
+}
+
void
org_gnome_cooly_rss_refresh(void *ep, EMPopupTargetSelect *t)
{
@@ -2760,6 +2766,10 @@
if (!rf->online)
return;
+ //no feeds enabled
+ if (!g_hash_table_find(rf->hre, check_if_enabled, NULL))
+ return;
+
if (!rf->setup || g_hash_table_size(rf->hrname)<1)
{
taskbar_push_message(_("No RSS feeds configured!"));
@@ -2868,6 +2878,10 @@
rf->t = t;
+ //no feeds enabled
+ if (!g_hash_table_find(rf->hre, check_if_enabled, NULL))
+ return;
+
if (!rf->setup || g_hash_table_size(rf->hrname)<1)
{
taskbar_push_message(_("No RSS feeds configured!"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]