diff options
author | Iain Holmes <iain@src.gnome.org> | 2003-03-13 22:36:02 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2003-03-13 22:36:02 +0800 |
commit | 8680bdc0594de8ced25f5b648e817ea789475ffe (patch) | |
tree | ba97f1836a5928039e814d09ace846e304eda321 /lib/widgets/ephy-spinner.c | |
parent | 63c056f322363949ba6c2e044be48d5ace24d2a6 (diff) | |
download | gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.gz gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.zst gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.zip |
Replace deprecated function
Diffstat (limited to 'lib/widgets/ephy-spinner.c')
-rw-r--r-- | lib/widgets/ephy-spinner.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); |