From 8680bdc0594de8ced25f5b648e817ea789475ffe Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 13 Mar 2003 14:36:02 +0000 Subject: Replace deprecated function --- lib/widgets/ephy-spinner.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 3144f3fbf..b48e76aaf 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -246,6 +246,7 @@ ephy_spinner_expose (GtkWidget *widget, GdkEventExpose *event) { EphySpinner *spinner; GdkPixbuf *pixbuf; + GdkGC *gc; int x_offset, y_offset, width, height; GdkRectangle pix_area, dest; @@ -277,14 +278,13 @@ ephy_spinner_expose (GtkWidget *widget, GdkEventExpose *event) return FALSE; } - gdk_pixbuf_render_to_drawable_alpha ( - pixbuf, widget->window, - dest.x - x_offset, dest.y - y_offset, - dest.x, dest.y, - dest.width, dest.height, - GDK_PIXBUF_ALPHA_BILEVEL, 128, - GDK_RGB_DITHER_MAX, - 0, 0); + gc = gdk_gc_new (widget->window); + gdk_draw_pixbuf (widget->window, gc, pixbuf, + dest.x - x_offset, dest.y - y_offset, + dest.x, dest.y, + dest.width, dest.height, + GDK_RGB_DITHER_MAX, 0, 0); + g_object_unref (gc); g_object_unref (pixbuf); -- cgit v1.2.3