]> spindle.queued.net Git - midori/commitdiff
Spare a separate g_file_test, let GdkPixbuf handle missing files
authorChristian Dywan <christian@twotoasts.de>
Fri, 23 Jan 2009 20:45:40 +0000 (21:45 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Jan 2009 20:45:40 +0000 (21:45 +0100)
katze/katze-net.c

index cf169c15837f6b4bc0eef5d352658ddeb185f769..a40c1e3fbaf55d218a3a35fdd87c388d68ca7cfb 100644 (file)
@@ -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)