From d37db2a55f3b7b1b972f1d70a69e9d3508e4105f Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 20 Jul 2006 14:16:46 +0000 Subject: [PATCH] * use g_printerr instead of g_warning pmo-trunk-r396 --- src/modest-icon-factory.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modest-icon-factory.c b/src/modest-icon-factory.c index 95b7a96..a17402c 100644 --- a/src/modest-icon-factory.c +++ b/src/modest-icon-factory.c @@ -53,8 +53,8 @@ void modest_icon_factory_init (void) { if (icon_hash) { - g_warning ("modest_icon_factory_init " - "should be called only once"); + g_printerr ("modest: modest_icon_factory_init " + "should be called only once\n"); return; } @@ -69,9 +69,9 @@ void modest_icon_factory_uninit (void) { if (!icon_hash) { - g_warning ("modest_icon_factory_uninit " + g_printerr ("modest: modest_icon_factory_uninit " "must only be called with initialized " - "ModestIconFactories"); + "ModestIconFactories\n"); return; } @@ -89,7 +89,7 @@ modest_icon_factory_get_icon (const gchar *name) gpointer orig_key; if (!icon_hash) { - g_warning ("ModestIconFactory must be initialized first"); + g_printerr ("modest: ModestIconFactory must be initialized first\n"); return NULL; } @@ -100,7 +100,7 @@ modest_icon_factory_get_icon (const gchar *name) (gpointer*)&pixbuf)) { pixbuf = gdk_pixbuf_new_from_file (name, &err); if (!pixbuf) { - g_warning (err->message); + g_printerr ("modest: error in icon factory: %s\n", err->message); g_error_free (err); } /* if we cannot find it, we still insert, so we get the error -- 1.7.9.5