[evolution-rss/evolution-rss-0-2-0] reduce output warning messages



commit d8ee471b2f9de78eb21262e330c103d4c5b1013b
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed Jan 26 17:06:07 2011 +0200

    reduce output warning messages

 src/rss-image.c |    3 ++-
 src/rss.c       |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rss-image.c b/src/rss-image.c
index 3cff85c..96ca94d 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -501,7 +501,8 @@ file_is_image(gchar *image)
 	gsize length;
 	gboolean result = TRUE;
 
-	g_return_val_if_fail(image != NULL, 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 1971667..0fb1105 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -566,7 +566,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]