diff options
author | Frédéric Crozat <fcrozat@src.gnome.org> | 2003-10-09 15:49:28 +0800 |
---|---|---|
committer | Frédéric Crozat <fcrozat@src.gnome.org> | 2003-10-09 15:49:28 +0800 |
commit | 015c3706a89faf252efb610555212f3b00506172 (patch) | |
tree | a0b57a112109de4c9a9074e4f87d3bf22826d66c /mail/em-icon-stream.c | |
parent | fd1c610868d744dd704d4c31245fddd0c8d4a287 (diff) | |
download | gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.gz gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.zst gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.zip |
Check for gnome-thumbnail.h existence.
* configure.in: Check for gnome-thumbnail.h existence.
* mail/em-icon-stream.c: (emis_sync_close):
Use gnome-thumbnail_scale_down_pixbuf if available,
for better performance.
svn path=/trunk/; revision=22829
Diffstat (limited to 'mail/em-icon-stream.c')
-rw-r--r-- | mail/em-icon-stream.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-icon-stream.c b/mail/em-icon-stream.c index 9ba67cf69a..ca0e7b64eb 100644 --- a/mail/em-icon-stream.c +++ b/mail/em-icon-stream.c @@ -28,6 +28,9 @@ #include <stdio.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf-loader.h> +#ifdef HAVE_LIBGNOMEUI_GNOME_THUMBNAIL_H +#include <libgnomeui/gnome-thumbnail.h> +#endif #include <gtk/gtkimage.h> #include "em-icon-stream.h" @@ -165,7 +168,11 @@ emis_sync_close(CamelStream *stream) } } +#ifdef HAVE_LIBGNOMEUI_GNOME_THUMBNAIL_H + mini = gnome_thumbnail_scale_down_pixbuf (pixbuf, width, height); +#else mini = gdk_pixbuf_scale_simple(pixbuf, width, height, GDK_INTERP_BILINEAR); +#endif gtk_image_set_from_pixbuf(emis->image, mini); g_object_unref(mini); } else { |