[gthumb] Remove more gdk_pixbuf_render_to_drawable* functions, bug 575017
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Remove more gdk_pixbuf_render_to_drawable* functions, bug 575017
- Date: Thu, 28 May 2009 11:24:43 -0400 (EDT)
commit ace92575a6c6cd8cc8f011ac07a5e87ad3d53c46
Author: Lincoln de Sousa <lincoln alfaiati net>
Date: Thu May 28 11:23:39 2009 -0400
Remove more gdk_pixbuf_render_to_drawable* functions, bug 575017
---
libgthumb/gth-image-list.c | 21 ++++++++++++---------
src/gth-fullscreen.c | 38 ++++++++++++++++++++++----------------
2 files changed, 34 insertions(+), 25 deletions(-)
diff --git a/libgthumb/gth-image-list.c b/libgthumb/gth-image-list.c
index 4d7fcb3..dbe4f9f 100644
--- a/libgthumb/gth-image-list.c
+++ b/libgthumb/gth-image-list.c
@@ -1739,15 +1739,18 @@ paint_rubberband (GthImageList *image_list,
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, rect.width, rect.height);
gdk_pixbuf_fill (pixbuf, rgba);
- gdk_pixbuf_render_to_drawable_alpha (pixbuf,
- priv->bin_window,
- 0, 0,
- rect.x, rect.y,
- rect.width, rect.height,
- GDK_PIXBUF_ALPHA_FULL,
- 0,
- GDK_RGB_DITHER_NONE,
- 0, 0);
+
+ gdk_draw_pixbuf (priv->bin_window,
+ NULL,
+ pixbuf,
+ 0, 0,
+ rect.x,
+ rect.y,
+ rect.width,
+ rect.height,
+ GDK_RGB_DITHER_NONE,
+ 0, 0);
+
g_object_unref (pixbuf);
#ifdef HAVE_RENDER
diff --git a/src/gth-fullscreen.c b/src/gth-fullscreen.c
index 3c4a116..a69e3e7 100644
--- a/src/gth-fullscreen.c
+++ b/src/gth-fullscreen.c
@@ -678,14 +678,16 @@ render_background (GdkDrawable *drawable,
/**/
- gdk_pixbuf_render_to_drawable_alpha (pixbuf,
- drawable,
- 0, 0,
- 0, 0,
- bounds->width, bounds->height,
- GDK_PIXBUF_ALPHA_FULL,
- 255,
- GDK_RGB_DITHER_NONE, 0, 0);
+ gdk_draw_pixbuf (drawable,
+ NULL,
+ pixbuf,
+ 0, 0,
+ 0, 0,
+ bounds->width,
+ bounds->height,
+ GDK_RGB_DITHER_NONE,
+ 0, 0);
+
g_object_unref (pixbuf);
}
@@ -1031,14 +1033,18 @@ show_comment_on_image (GthFullscreen *fullscreen)
text_x,
text_y,
layout);
- gdk_pixbuf_render_to_drawable (icon,
- priv->buffer,
- GTK_WIDGET (viewer)->style->black_gc,
- 0, 0,
- icon_x, icon_y,
- icon_w, icon_h,
- GDK_RGB_DITHER_NONE,
- 0, 0);
+
+ gdk_draw_pixbuf (priv->buffer,
+ GTK_WIDGET (viewer)->style->black_gc,
+ icon,
+ 0, 0,
+ icon_x,
+ icon_y,
+ icon_w,
+ icon_h,
+ GDK_RGB_DITHER_NONE,
+ 0, 0);
+
g_object_unref (icon);
g_object_unref (layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]