aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog10
-rw-r--r--widgets/misc/e-attachment-bar.c5
-rw-r--r--widgets/misc/e-image-chooser.c5
-rw-r--r--widgets/misc/e-spinner.c5
4 files changed, 17 insertions, 8 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 5aa92bc051..2261a7ba4f 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,13 @@
+2008-01-11 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #488213
+
+ * e-spinner.c: (scale_to_size):
+ * e-image-chooser.c: (set_image_from_data):
+ * e-attachment-bar.c: (e_attachment_bar_create_attachment_cache),
+ (update):
+ Use global function e_icon_factory_pixbuf_scale for scaling pixbufs.
+
2008-01-10 Srinivasa Ragavan <sragavan@novell.com>
** Add better support to show info/errors
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 192fba56e0..33bff284f7 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -241,7 +241,7 @@ e_attachment_bar_create_attachment_cache (EAttachment *attachment)
}
}
- attachment->pixbuf_cache = gdk_pixbuf_scale_simple (pixbuf, width,height,GDK_INTERP_BILINEAR);
+ attachment->pixbuf_cache = e_icon_factory_pixbuf_scale (pixbuf, width, height);
pixbuf = attachment->pixbuf_cache;
g_object_ref(pixbuf);
} else {
@@ -334,8 +334,7 @@ update (EAttachmentBar *bar)
}
}
- attachment->pixbuf_cache = gdk_pixbuf_scale_simple (pixbuf, width, height,
- GDK_INTERP_BILINEAR);
+ attachment->pixbuf_cache = e_icon_factory_pixbuf_scale (pixbuf, width, height);
pixbuf = attachment->pixbuf_cache;
g_object_ref (pixbuf);
} else {
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c
index c15cb54817..5dae27527f 100644
--- a/widgets/misc/e-image-chooser.c
+++ b/widgets/misc/e-image-chooser.c
@@ -34,6 +34,7 @@
#include "e-image-chooser.h"
#include "e-util/e-util-marshal.h"
+#include "e-util/e-icon-factory.h"
struct _EImageChooserPrivate {
@@ -292,9 +293,7 @@ set_image_from_data (EImageChooser *chooser,
printf ("new scaled dimensions = (%d,%d)\n", new_width, new_height);
- scaled = gdk_pixbuf_scale_simple (pixbuf,
- new_width, new_height,
- GDK_INTERP_BILINEAR);
+ scaled = e_icon_factory_pixbuf_scale (pixbuf, new_width, new_height);
composite = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, gdk_pixbuf_get_bits_per_sample (pixbuf),
chooser->priv->image_width, chooser->priv->image_height);
diff --git a/widgets/misc/e-spinner.c b/widgets/misc/e-spinner.c
index 79ababe803..c5a247044d 100644
--- a/widgets/misc/e-spinner.c
+++ b/widgets/misc/e-spinner.c
@@ -41,6 +41,8 @@
#include <gtk/gtkiconfactory.h>
#include <gtk/gtksettings.h>
+#include "e-util/e-icon-factory.h"
+
/* Spinner cache implementation */
#define E_TYPE_SPINNER_CACHE (e_spinner_cache_get_type())
@@ -222,8 +224,7 @@ scale_to_size (GdkPixbuf *pixbuf,
if (pw != dw || ph != dh)
{
- result = gdk_pixbuf_scale_simple (pixbuf, dw, dh,
- GDK_INTERP_BILINEAR);
+ result = e_icon_factory_pixbuf_scale (pixbuf, dw, dh);
g_object_unref (pixbuf);
return result;
}