summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-11-21 02:11:58 +0100
committerBenjamin Otte <otte@redhat.com>2015-11-21 02:14:08 +0100
commit7373fd8aab32dcd03ba8cf3080c91eb43f643e68 (patch)
tree76e77ac9467b6ee0840c0d66e754b8eb56b3f63f
parent55061eca592037a81d0b1127326d4c68df0a3aa2 (diff)
downloadgtk+-7373fd8aab32dcd03ba8cf3080c91eb43f643e68.tar.gz
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
-rw-r--r--gtk/gtkcssnodedeclaration.c4
1 files changed, 4 insertions, 0 deletions
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++)