diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/widgets/ephy-spinner.c | 16 |
2 files changed, 13 insertions, 8 deletions
@@ -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); |