From 5b5e6bd71acbdfaccfff246c04764c76ea85a6df Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 23 Jan 2009 21:45:40 +0100 Subject: [PATCH] Spare a separate g_file_test, let GdkPixbuf handle missing files --- katze/katze-net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/katze/katze-net.c b/katze/katze-net.c index cf169c15..a40c1e3f 100644 --- a/katze/katze-net.c +++ b/katze/katze-net.c @@ -585,8 +585,8 @@ katze_net_load_icon (KatzeNet* net, if (pixbuf) g_object_ref (pixbuf); } - else if (g_file_test (icon_file, G_FILE_TEST_EXISTS)) - pixbuf = gdk_pixbuf_new_from_file (icon_file, NULL); + else if ((pixbuf = gdk_pixbuf_new_from_file (icon_file, NULL))) + ; /* If the called doesn't provide an icon callback, we assume there is no interest in loading an un-cached icon. */ else if (icon_cb) -- 2.39.5