[gtksourceview] Use the correct enum value.



commit e9d3f73c8de91d80b297eb9621a6e162dd8e6744
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Oct 23 17:09:33 2010 +0200

    Use the correct enum value.
    
    Pointed out by newer gcc, it always worked because both values are 1.

 gtksourceview/gtksourcelanguage-parser-2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage-parser-2.c b/gtksourceview/gtksourcelanguage-parser-2.c
index 09a2181..60ac76b 100644
--- a/gtksourceview/gtksourcelanguage-parser-2.c
+++ b/gtksourceview/gtksourcelanguage-parser-2.c
@@ -388,7 +388,7 @@ create_definition (ParserState *parser_state,
 
 	for (child = context_node->children; child != NULL; child = child->next)
 	{
-		if (child->type != XML_READER_TYPE_ELEMENT)
+		if (child->type != XML_ELEMENT_NODE)
 			continue;
 
 		/* FIXME: add PCRE_EXTRA support in EggRegex



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