[gtk+/rendering-cleanup-next: 7/153] ruler: Don't create two cairo_t's
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 7/153] ruler: Don't create two cairo_t's
- Date: Sat, 11 Sep 2010 04:52:01 +0000 (UTC)
commit 7c530cf673e34067032fa8b8eb202ffd53d9a0e5
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 1 23:08:01 2010 +0200
ruler: Don't create two cairo_t's
gtk/gtkruler.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c
index 4b82bb1..72693f5 100644
--- a/gtk/gtkruler.c
+++ b/gtk/gtkruler.c
@@ -899,13 +899,9 @@ gtk_ruler_real_draw_pos (GtkRuler *ruler)
/* If a backing store exists, restore the ruler */
if (priv->backing_store) {
- cairo_t *cr = gdk_cairo_create (window);
-
cairo_set_source_surface (cr, priv->backing_store, 0, 0);
cairo_rectangle (cr, priv->xsrc, priv->ysrc, bs_width, bs_height);
cairo_fill (cr);
-
- cairo_destroy (cr);
}
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]