[gtk+/wip/cssnode3: 39/88] cssnode: Make widget node not copy the path



commit 1df771077804a9db3b7e361284787baf411c5c8b
Author: Benjamin Otte <otte redhat com>
Date:   Mon Feb 9 16:14:03 2015 +0100

    cssnode: Make widget node not copy the path
    
    Instead, use gtk_widget_get_path() which makes GtkWidget cache the path.
    This is a temporary solution until we can get rid of widget paths.
    
    This increases memory usage quite noticably.

 gtk/gtkcsswidgetnode.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c
index 46785b4..b279081 100644
--- a/gtk/gtkcsswidgetnode.c
+++ b/gtk/gtkcsswidgetnode.c
@@ -178,10 +178,8 @@ gtk_css_widget_node_init_matcher (GtkCssNode     *node,
   if (widget_node->widget == NULL)
     return FALSE;
 
-  *path_out = _gtk_widget_create_path (widget_node->widget);
-
   return _gtk_css_matcher_init (matcher,
-                                *path_out,
+                                gtk_widget_get_path (widget_node->widget),
                                 gtk_css_node_get_declaration (node));
 }
 


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