From 015c3706a89faf252efb610555212f3b00506172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Crozat?= Date: Thu, 9 Oct 2003 07:49:28 +0000 Subject: 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 --- ChangeLog | 4 ++++ mail/ChangeLog | 6 ++++++ mail/em-icon-stream.c | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1a59b92d2a..7a6110f55f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-10-08 Frederic Crozat + + * configure.in: Check for gnome-thumbnail.h existence. + 2003-09-04 Dan Winship * camel.pc.in (Requires): 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 + + * em-icon-stream.c: (emis_sync_close): + Use gnome-thumbnail_scale_down_pixbuf if available, + for better performance. + 2003-10-08 Jeffrey Stedfast * 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 #include #include +#ifdef HAVE_LIBGNOMEUI_GNOME_THUMBNAIL_H +#include +#endif #include #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 { -- cgit v1.2.3