[evolution-rss] reduce output warning messages



commit f01757d595f6a8086973468cb1a17778e0902948
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Jan 18 16:26:38 2011 +0200

    reduce output warning messages

 TODO            |    3 ++-
 src/rss-image.c |    5 +++--
 src/rss.c       |    2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/TODO b/TODO
index dbf65f1..86f2e2b 100644
--- a/TODO
+++ b/TODO
@@ -41,5 +41,6 @@
 	* markup fail perhaps in web auth dialog
 	* nice to add progressive downloading of images
 	* redraw browser window after submit ?
-	*  add configuration option to right click on status icon
+	* add configuration option to right click on status icon
 	* default render engine broken again
+	* detect rss-id changes (file changes) -> feeds downloaded all over again
diff --git a/src/rss-image.c b/src/rss-image.c
index a46c979..6965ba7 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -501,8 +501,9 @@ file_is_image(gchar *image, gboolean cleanup)
 	gboolean result = TRUE;
 
 	g_return_val_if_fail(image != NULL, FALSE);
-	g_return_val_if_fail(
-		g_file_test(image, G_FILE_TEST_EXISTS) == TRUE, FALSE);
+
+	if (!g_file_test(image, G_FILE_TEST_EXISTS))
+		return FALSE;
 
 	/*need to get mime type via file contents or else mime type is
 	 * bound to be wrong, especially on files fetched from the web
diff --git a/src/rss.c b/src/rss.c
index 8b9f5bc..0c8ba1e 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -555,7 +555,7 @@ textcb(NetStatusType status, gpointer statusdata, gpointer data)
 		progress = (NetStatusProgress*)statusdata;
 		if (progress->current > 0 && progress->total > 0) {
 			fraction = (float)progress->current / progress->total;
-			g_print("%.2f%% ", fraction);
+			d("%.2f%% ", fraction);
 		}
 		while (gtk_events_pending())
 			gtk_main_iteration ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]