[epiphany] ephy-spinner: fix spinner drawing
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-spinner: fix spinner drawing
- Date: Sat, 9 Oct 2010 11:07:35 +0000 (UTC)
commit bc0b1a4e87b6294a31a812a69bfbde1ae934be21
Author: Xan Lopez <xan gnome org>
Date: Sat Oct 9 19:27:20 2010 +0900
ephy-spinner: fix spinner drawing
Was using a no longer calculated rect for the drawing coordinates.
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 3b610a1..c12dccd 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]