diff options
author | Xan Lopez <xan@gnome.org> | 2010-10-09 18:27:20 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-10-09 19:07:15 +0800 |
commit | bc0b1a4e87b6294a31a812a69bfbde1ae934be21 (patch) | |
tree | f8f18f4893a9fd40b25f71ebd24dab8a2972796d /lib | |
parent | 14c563eb8190ce9fcced08c4e11638ad388714ab (diff) | |
download | gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar.gz gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar.bz2 gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar.lz gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar.xz gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.tar.zst gsoc2013-epiphany-bc0b1a4e87b6294a31a812a69bfbde1ae934be21.zip |
ephy-spinner: fix spinner drawing
Was using a no longer calculated rect for the drawing coordinates.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/widgets/ephy-spinner.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 3b610a19f..c12dccd8a 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -626,7 +626,6 @@ ephy_spinner_draw (GtkWidget *widget, GtkAllocation allocation; GdkPixbuf *pixbuf; int x_offset, y_offset, width, height; - GdkRectangle pix_area, dest; if (!gtk_widget_is_drawable (GTK_WIDGET (spinner))) { @@ -662,13 +661,7 @@ ephy_spinner_draw (GtkWidget *widget, gtk_widget_get_allocation (widget, &allocation); x_offset = (allocation.width - width) / 2; y_offset = (allocation.height - height) / 2; - - pix_area.x = x_offset + allocation.x; - pix_area.y = y_offset + allocation.y; - pix_area.width = width; - pix_area.height = height; - - gdk_cairo_set_source_pixbuf (cr, pixbuf, dest.x, dest.y); + gdk_cairo_set_source_pixbuf (cr, pixbuf, x_offset, y_offset); cairo_paint (cr); return FALSE; |