diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-icon-stream.c | 7 |
3 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2003-10-08 Frederic Crozat <fcrozat@mandrakesoft.com> + + * configure.in: Check for gnome-thumbnail.h existence. + 2003-09-04 Dan Winship <danw@ximian.com> * 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 <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 { |