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
This commit is contained in:
Benjamin Otte 2015-11-21 02:11:58 +01:00
parent 55061eca59
commit 7373fd8aab

View File

@ -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++)