From 0c093cb33516c86ea028d85ef99531e07f4c83d1 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 8 Nov 2008 03:24:02 +0100 Subject: [PATCH] Do not load icons automatically everywhere KatzeNet won't attempt to load icons that are not cached unless the caller provides an icon callback. For the moment, this means much less loading for items that are not actually visible, but for visiting pages or looking at bookmark menus. --- katze/katze-net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/katze/katze-net.c b/katze/katze-net.c index efe3b603..9b81a38d 100644 --- a/katze/katze-net.c +++ b/katze/katze-net.c @@ -531,7 +531,9 @@ katze_net_load_icon (KatzeNet* net, } else if (g_file_test (icon_file, G_FILE_TEST_EXISTS)) pixbuf = gdk_pixbuf_new_from_file (icon_file, NULL); - else + /* 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) { priv = g_new0 (KatzeNetIconPriv, 1); priv->net = net;