forked from AuroraMiddleware/gtk
cssnodedeclaration: Only set the id on the widget path if we have one
Widget paths don't like NULL.
This commit is contained in:
parent
adead3b499
commit
ee1381a1f3
@ -623,7 +623,8 @@ gtk_css_node_declaration_add_to_widget_path (const GtkCssNodeDeclaration *decl,
|
||||
|
||||
/* 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);
|
||||
if (decl->id)
|
||||
gtk_widget_path_iter_set_name (path, pos, decl->id);
|
||||
|
||||
/* Set widget regions */
|
||||
regions = get_regions (decl);
|
||||
|
Loading…
Reference in New Issue
Block a user