aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2003-03-13 22:36:02 +0800
committerIain Holmes <iain@src.gnome.org>2003-03-13 22:36:02 +0800
commit8680bdc0594de8ced25f5b648e817ea789475ffe (patch)
treeba97f1836a5928039e814d09ace846e304eda321
parent63c056f322363949ba6c2e044be48d5ace24d2a6 (diff)
downloadgsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.gz
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.bz2
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.lz
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.xz
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.tar.zst
gsoc2013-epiphany-8680bdc0594de8ced25f5b648e817ea789475ffe.zip
Replace deprecated function
-rw-r--r--ChangeLog5
-rw-r--r--lib/widgets/ephy-spinner.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index fd1f3d06a..14fbc5a0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-13 Iain <iain@prettypeople.org>
+
+ * lib/widgets/ephy-spinner.c (ephy_spinner_expose): Use gdk_draw_pixbuf
+ instead of gdk_pixbuf_render_to_drawable_alpha
+
2003-03-11 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/mozilla/ProgressListener.cpp:
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);