Spare a separate g_file_test, let GdkPixbuf handle missing files
This commit is contained in:
parent
2083433739
commit
5b5e6bd71a
1 changed files with 2 additions and 2 deletions
|
@ -585,8 +585,8 @@ katze_net_load_icon (KatzeNet* net,
|
||||||
if (pixbuf)
|
if (pixbuf)
|
||||||
g_object_ref (pixbuf);
|
g_object_ref (pixbuf);
|
||||||
}
|
}
|
||||||
else if (g_file_test (icon_file, G_FILE_TEST_EXISTS))
|
else if ((pixbuf = gdk_pixbuf_new_from_file (icon_file, NULL)))
|
||||||
pixbuf = gdk_pixbuf_new_from_file (icon_file, NULL);
|
;
|
||||||
/* If the called doesn't provide an icon callback,
|
/* If the called doesn't provide an icon callback,
|
||||||
we assume there is no interest in loading an un-cached icon. */
|
we assume there is no interest in loading an un-cached icon. */
|
||||||
else if (icon_cb)
|
else if (icon_cb)
|
||||||
|
|
Loading…
Reference in a new issue