[gtk+/rendering-cleanup-next: 8/203] ruler: Don't create two cairo_t's



commit c6c8f3876932fbe69b8ee3c9664f4e2763438414
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]