From 7373fd8aab32dcd03ba8cf3080c91eb43f643e68 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 21 Nov 2015 02:11:58 +0100 Subject: cssnodedeclaration: Set element name and id on widget path Otherwise the widget path creation functions will fail. This affects widgets still using gtk_style_context_save(). https://bugzilla.gnome.org/show_bug.cgi?id=758442 --- gtk/gtkcssnodedeclaration.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkcssnodedeclaration.c b/gtk/gtkcssnodedeclaration.c index 1c5187b4b6..99ff6b5df1 100644 --- a/gtk/gtkcssnodedeclaration.c +++ b/gtk/gtkcssnodedeclaration.c @@ -621,6 +621,10 @@ gtk_css_node_declaration_add_to_widget_path (const GtkCssNodeDeclaration *decl, GtkRegion *regions; guint i; + /* Set name and id */ + gtk_widget_path_iter_set_object_name (path, pos, decl->name); + gtk_widget_path_iter_set_name (path, pos, decl->id); + /* Set widget regions */ regions = get_regions (decl); for (i = 0; i < decl->n_regions; i++) -- cgit v1.2.1