recent files icon loading fix
- From: James Henstridge <james jamesh id au>
- To: desktop-devel-list gnome org
- Subject: recent files icon loading fix
- Date: Mon, 27 Sep 2004 17:27:57 +0800
I recently checked in a fix to the image loading routine in the libegg
recent files code, as detailed here:
http://bugzilla.gnome.org/show_bug.cgi?id=153621
The change speeds up loading of SVG icons. Previously,
gdk_pixbuf_new_from_file() was being used to load the image, causing the
SVG to render at its default size which would then need to be scaled to
the desired size.
After the patch, gdk_pixbuf_new_from_file_at_size() is used which
provides a size hint to the loader backend, so the image is rendered at
the correct size to start with.
Since this is an optimisation, and not all apps use the icon loading
code in the recent files code (I know the panel does though), it isn't
critical that all apps pull in the update immediately but it would be
good to do so in the future.
There are other places in Gnome that can be changed to use
gdk_pixbuf_new_from_file_at_size() to speed up loading of SVG icons, so
it might be worth checking similar code. I found a few similar problems
in the panel code, which I've bugzilla'd.
James.
--
Email: james jamesh id au
WWW: http://www.jamesh.id.au/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]