[gtk+] builtin icon: Don't save/restore cairo state



commit 64b499be6616c909ea6544f03520e0c928b8d302
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 13 00:01:14 2016 -0500

    builtin icon: Don't save/restore cairo state
    
    The reason why this was introduced is now handled in
    gtk_css_stylke_render_icon since commit
    0138af9f9684c0ec436b37e5962e9f82607d3ff8.

 gtk/gtkbuiltinicon.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbuiltinicon.c b/gtk/gtkbuiltinicon.c
index 1abf04d..8e543e5 100644
--- a/gtk/gtkbuiltinicon.c
+++ b/gtk/gtkbuiltinicon.c
@@ -123,13 +123,11 @@ gtk_builtin_icon_draw (GtkCssGadget *gadget,
 {
   GtkBuiltinIconPrivate *priv = gtk_builtin_icon_get_instance_private (GTK_BUILTIN_ICON (gadget));
 
-  cairo_save (cr);
   gtk_css_style_render_icon (gtk_css_gadget_get_style (gadget),
                              cr,
                              x, y,
                              width, height,
                              priv->image_type);
-  cairo_restore (cr);
 
   return FALSE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]