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
This commit is contained in:
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user