tracker r2981 - in trunk: . src/tracker-search-tool
- From: aklapper svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2981 - in trunk: . src/tracker-search-tool
- Date: Thu, 26 Feb 2009 17:19:10 +0000 (UTC)
Author: aklapper
Date: Thu Feb 26 17:19:10 2009
New Revision: 2981
URL: http://svn.gnome.org/viewvc/tracker?rev=2981&view=rev
Log:
2009-02-26 Andre Klapper <a9016009 gmx de>
* src/tracker-search-tool/tracker-search-tool-support.c:
Replace a call to libart with a GDK equivalent. Patch by Cosimo
Cecchi copied from gnome-utils.
Fixes GNOME bug 571736.
Modified:
trunk/ChangeLog
trunk/src/tracker-search-tool/tracker-search-tool-support.c
Modified: trunk/src/tracker-search-tool/tracker-search-tool-support.c
==============================================================================
--- trunk/src/tracker-search-tool/tracker-search-tool-support.c (original)
+++ trunk/src/tracker-search-tool/tracker-search-tool-support.c Thu Feb 26 17:19:10 2009
@@ -34,7 +34,6 @@
#include <glib.h>
#include <regex.h>
#include <gdk/gdkx.h>
-#include <libart_lgpl/art_rgb.h>
#include <gio/gio.h>
#include <libgnome/gnome-desktop-item.h>
#include <libgnomeui/gnome-thumbnail.h>
@@ -909,9 +908,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;
@@ -923,15 +920,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]