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



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