[gtk+] Don't use a transient node in gtk_render_arrow()



commit 78373eb9f7407202d3ac114764b60d3d81d7cfa4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 8 20:27:22 2015 -0500

    Don't use a transient node in gtk_render_arrow()
    
    It is not necessary for the users of this API, and causes things
    to not work as intended. Without this transient node, styling
    "notebook header tabs arrow" has the desired effect on notebook
    arrows.

 gtk/gtkrender.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c
index 4f986bb..d8abadc 100644
--- a/gtk/gtkrender.c
+++ b/gtk/gtkrender.c
@@ -236,12 +236,8 @@ gtk_render_arrow (GtkStyleContext *context,
   cairo_save (cr);
   cairo_new_path (cr);
 
-  gtk_style_context_save (context);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_ARROW);
-
   gtk_do_render_arrow (context, cr, angle, x, y, size);
 
-  gtk_style_context_restore (context);
   cairo_restore (cr);
 }
 


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