[gtk+] Improve gtk-builder-convert error reporting



commit 209af946f37d2eae9f62d16ee817f4368758ef8f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Apr 6 20:21:04 2009 -0400

    Improve gtk-builder-convert error reporting
    
    Make gtk-builder-convert warn when it meets duplicate ids, since
    those will not work with GtkBuilder.
---
 gtk/gtk-builder-convert |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gtk/gtk-builder-convert b/gtk/gtk-builder-convert
index 470e206..e1fccdb 100755
--- a/gtk/gtk-builder-convert
+++ b/gtk/gtk-builder-convert
@@ -257,6 +257,8 @@ class GtkBuilderConverter(object):
 
         for node in objects:
             self._convert(node.getAttribute("class"), node)
+            if self._get_object(node.getAttribute('id')) is not None:
+		print "WARNING: duplicate id \"" + node.getAttribute('id') + "\""
             self.objects[node.getAttribute('id')] = node
 
         # Convert Gazpachos UI tag



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