From: Benjamin Otte Date: Mon, 9 Feb 2015 15:14:03 +0000 (+0100) Subject: cssnode: Make widget node not copy the path X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~10108 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a5194b6356ac58de144eb436f1d68ec216bce19;p=gtk4.git 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. --- diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index 46785b4b50..b2790815ed 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)); }