aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorFrédéric Crozat <fcrozat@src.gnome.org>2003-10-09 15:49:28 +0800
committerFrédéric Crozat <fcrozat@src.gnome.org>2003-10-09 15:49:28 +0800
commit015c3706a89faf252efb610555212f3b00506172 (patch)
treea0b57a112109de4c9a9074e4f87d3bf22826d66c /mail
parentfd1c610868d744dd704d4c31245fddd0c8d4a287 (diff)
downloadgsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar
gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.gz
gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.bz2
gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.lz
gsoc2013-evolution-015c3706a89faf252efb610555212f3b00506172.tar.xz
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')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-icon-stream.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 168d85f25d..1ca3dae2d2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-09 Frederic Crozat <fcrozat@mandrakesoft.com>
+
+ * em-icon-stream.c: (emis_sync_close):
+ Use gnome-thumbnail_scale_down_pixbuf if available,
+ for better performance.
+
2003-10-08 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-view.c: Add a hide_mask to the
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 {