[gtk+] Trivial: Move a cairo_save call



commit eaddbb2dcab0640fa87195174a84e0f358a857a1
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 28 15:02:36 2015 -0400

    Trivial: Move a cairo_save call
    
    Move the cairo_save call to where it is needed.

 gtk/gtkcontainer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 2060529..c0614f5 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -3787,8 +3787,6 @@ gtk_container_propagate_draw (GtkContainer   *container,
   if (!gtk_container_should_propagate_draw (container, child, cr))
     return;
 
-  cairo_save (cr);
-
   /* translate coordinates. Ugly business, that. */
   if (!_gtk_widget_get_has_window (GTK_WIDGET (container)))
     {
@@ -3825,6 +3823,7 @@ gtk_container_propagate_draw (GtkContainer   *container,
       y += allocation.y;
     }
 
+  cairo_save (cr);
   cairo_translate (cr, x, y);
 
   _gtk_widget_draw (child, cr);


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