[gtk+] cssnodedeclaration: Set element name and id on widget path
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssnodedeclaration: Set element name and id on widget path
- Date: Sat, 21 Nov 2015 01:23:21 +0000 (UTC)
commit 7373fd8aab32dcd03ba8cf3080c91eb43f643e68
Author: Benjamin Otte <otte redhat com>
Date: Sat Nov 21 02:11:58 2015 +0100
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssnodedeclaration.c b/gtk/gtkcssnodedeclaration.c
index 1c5187b..99ff6b5 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++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]