gnome-utils r8411 - trunk/gsearchtool
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8411 - trunk/gsearchtool
- Date: Sun, 15 Feb 2009 12:06:35 +0000 (UTC)
Author: cosimoc
Date: Sun Feb 15 12:06:35 2009
New Revision: 8411
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8411&view=rev
Log:
2009-02-15 Cosimo Cecchi <cosimoc gnome org>
* gsearchtool-support.c (gsearchtool_stretch_frame_image):
Replace a call to libart with a GDK equivalent (#571735).
Modified:
trunk/gsearchtool/ChangeLog
trunk/gsearchtool/gsearchtool-support.c
Modified: trunk/gsearchtool/gsearchtool-support.c
==============================================================================
--- trunk/gsearchtool/gsearchtool-support.c (original)
+++ trunk/gsearchtool/gsearchtool-support.c Sun Feb 15 12:06:35 2009
@@ -924,9 +924,7 @@
gboolean fill_flag)
{
GdkPixbuf * result_pixbuf;
- guchar * pixels_ptr;
gint frame_width, frame_height;
- gint y, row_stride;
gint target_width, target_frame_width;
gint target_height, target_frame_height;
@@ -938,15 +936,10 @@
} else {
result_pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, dest_width, dest_height);
}
- row_stride = gdk_pixbuf_get_rowstride (result_pixbuf);
- pixels_ptr = gdk_pixbuf_get_pixels (result_pixbuf);
/* clear the new pixbuf */
if (fill_flag == FALSE) {
- for (y = 0; y < dest_height; y++) {
- art_rgb_run_alpha (pixels_ptr, 255, 255, 255, 255, dest_width);
- pixels_ptr += row_stride;
- }
+ gdk_pixbuf_fill (result_pixbuf, 0xffffffff);
}
target_width = dest_width - left_offset - right_offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]