[gnome-builder/wip/slaf/colored-build-output: 17/36] xml symbol resolver: use kind for the nodes



commit 1ee36485a26437b8941e345dd9e95e6a82e9a6a9
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Jan 22 12:43:46 2017 +0100

    xml symbol resolver: use kind for the nodes

 plugins/xml-pack/ide-xml-symbol-node.c |    3 ++-
 plugins/xml-pack/ide-xml-symbol-node.h |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-symbol-node.c b/plugins/xml-pack/ide-xml-symbol-node.c
index 30ab3df..c1005a9 100644
--- a/plugins/xml-pack/ide-xml-symbol-node.c
+++ b/plugins/xml-pack/ide-xml-symbol-node.c
@@ -120,6 +120,7 @@ ide_xml_symbol_node_init (IdeXmlSymbolNode *self)
 
 IdeXmlSymbolNode *
 ide_xml_symbol_node_new (const gchar            *name,
+                         IdeSymbolKind           kind,
                          GFile                  *file,
                          guint                   line,
                          guint                   line_offset)
@@ -132,7 +133,7 @@ ide_xml_symbol_node_new (const gchar            *name,
 
   self = g_object_new (IDE_TYPE_XML_SYMBOL_NODE,
                        "name", name,
-                       "kind", IDE_SYMBOL_NONE,
+                       "kind", kind,
                        "flags", flags,
                        NULL);
 
diff --git a/plugins/xml-pack/ide-xml-symbol-node.h b/plugins/xml-pack/ide-xml-symbol-node.h
index 3c9f6fa..613beba 100644
--- a/plugins/xml-pack/ide-xml-symbol-node.h
+++ b/plugins/xml-pack/ide-xml-symbol-node.h
@@ -30,6 +30,7 @@ G_BEGIN_DECLS
 G_DECLARE_FINAL_TYPE (IdeXmlSymbolNode, ide_xml_symbol_node, IDE, XML_SYMBOL_NODE, IdeSymbolNode)
 
 IdeXmlSymbolNode         *ide_xml_symbol_node_new              (const gchar            *name,
+                                                                IdeSymbolKind           kind,
                                                                 GFile                  *file,
                                                                 guint                   line,
                                                                 guint                   line_offset);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]