[planner: 13/61] eel-canvas-rect: Move away from gdk_pixbuf_render_to_drawable_alpha
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 13/61] eel-canvas-rect: Move away from gdk_pixbuf_render_to_drawable_alpha
- Date: Sat, 12 Jun 2021 17:30:22 +0000 (UTC)
commit 32a53fc117b0e068089252f1e7ac17a50ea4b135
Author: Mart Raudsepp <leio gentoo org>
Date: Sat Mar 7 00:07:21 2020 +0200
eel-canvas-rect: Move away from gdk_pixbuf_render_to_drawable_alpha
gdk_pixbuf_render_to_drawable_alpha has been deprecated since gtk-2.4.
Move this over to gdk_draw_pixbuf (deprecated in 2.22 intead) as a
logical step towards more modern methods.
src/eel-canvas-rect.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/eel-canvas-rect.c b/src/eel-canvas-rect.c
index f6aecb6f..3692d351 100644
--- a/src/eel-canvas-rect.c
+++ b/src/eel-canvas-rect.c
@@ -473,14 +473,14 @@ render_rect_alpha (EelCanvasRect *rect,
memcpy (data + i*rowstride, data, width*4);
}
- gdk_pixbuf_render_to_drawable_alpha (pixbuf,
- drawable,
- 0, 0,
- x, y,
- width, height,
- GDK_PIXBUF_ALPHA_FULL,
- 255,
- GDK_RGB_DITHER_NONE, 0, 0);
+ gdk_draw_pixbuf (drawable,
+ NULL,
+ pixbuf,
+ 0, 0,
+ x, y,
+ width, height,
+ GDK_RGB_DITHER_NONE, 0, 0);
+
g_object_unref (pixbuf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]