[gtk-engines] clearlooks: Fix drawing of arrows
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines] clearlooks: Fix drawing of arrows
- Date: Mon, 27 Sep 2010 02:42:17 +0000 (UTC)
commit d6698834da404c9478fac6fed529dbc98786932a
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 27 04:41:07 2010 +0200
clearlooks: Fix drawing of arrows
Previous code assumed full control over the cairo context and therefor
could call cairo_identity_matrix(). This is not the case anymore with
GTK3.
engines/clearlooks/src/clearlooks_draw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/engines/clearlooks/src/clearlooks_draw.c b/engines/clearlooks/src/clearlooks_draw.c
index fe107c3..809dbda 100644
--- a/engines/clearlooks/src/clearlooks_draw.c
+++ b/engines/clearlooks/src/clearlooks_draw.c
@@ -2429,13 +2429,13 @@ clearlooks_draw_arrow (cairo_t *cr,
if (widget->disabled)
{
+ cairo_save (cr);
_clearlooks_draw_arrow (cr, &colors->shade[0],
arrow->direction, arrow->type,
tx+0.5, ty+0.5, width, height);
+ cairo_restore (cr);
}
- cairo_identity_matrix (cr);
-
_clearlooks_draw_arrow (cr, color, arrow->direction, arrow->type,
tx, ty, width, height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]