[gthumb] always use _gdk_pixbuf_scale_simple_safe instead of gdk_pixbuf_scale_simple
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] always use _gdk_pixbuf_scale_simple_safe instead of gdk_pixbuf_scale_simple
- Date: Sun, 19 Aug 2012 08:38:31 +0000 (UTC)
commit a8096040bc29fde5944531097c26df719689e5a7
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Aug 19 09:33:50 2012 +0200
always use _gdk_pixbuf_scale_simple_safe instead of gdk_pixbuf_scale_simple
extensions/exiv2_tools/exiv2-utils.cpp | 2 +-
gthumb/gth-thumb-loader.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp
index 473537f..25291ea 100644
--- a/extensions/exiv2_tools/exiv2-utils.cpp
+++ b/extensions/exiv2_tools/exiv2-utils.cpp
@@ -1391,7 +1391,7 @@ exiv2_generate_thumbnail (const char *uri,
TRUE))
{
GdkPixbuf *tmp = pixbuf;
- pixbuf = gdk_pixbuf_scale_simple (tmp, pixbuf_width, pixbuf_height, GDK_INTERP_BILINEAR);
+ pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, pixbuf_width, pixbuf_height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
diff --git a/gthumb/gth-thumb-loader.c b/gthumb/gth-thumb-loader.c
index c924691..53e3af8 100644
--- a/gthumb/gth-thumb-loader.c
+++ b/gthumb/gth-thumb-loader.c
@@ -463,7 +463,7 @@ cache_image_ready_cb (GObject *source_object,
self->priv->cache_max_size);
if (modified) {
GdkPixbuf *tmp = pixbuf;
- pixbuf = gdk_pixbuf_scale_simple (tmp, width, height, GDK_INTERP_BILINEAR);
+ pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, width, height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
@@ -575,7 +575,7 @@ original_image_loaded_correctly (GthThumbLoader *self,
self->priv->cache_max_size);
if (modified) {
GdkPixbuf *tmp = local_pixbuf;
- local_pixbuf = gdk_pixbuf_scale_simple (tmp, width, height, GDK_INTERP_BILINEAR);
+ local_pixbuf = _gdk_pixbuf_scale_simple_safe (tmp, width, height, GDK_INTERP_BILINEAR);
g_object_unref (tmp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]