Do not remove empty properties, since we do not know the default

2007-09-04  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk-builder-convert (GtkBuilderConverter._parse): Do not remove 
    empty properties, since we do not know the default GParamSpec values.
    #472981 (Carlos Garnacho)


svn path=/trunk/; revision=18719
This commit is contained in:
Johan Dahlin 2007-09-04 11:53:18 +00:00 committed by Johan Dahlin
parent 09c762904e
commit 0df0fe47d6
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2007-09-04 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk-builder-convert (GtkBuilderConverter._parse): Do not remove
empty properties, since we do not know the default GParamSpec values.
#472981 (Carlos Garnacho)
2007-09-03 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c

View File

@ -213,11 +213,6 @@ class GtkBuilderConverter(object):
self._convert(node.getAttribute("class"), node)
self.objects[node.getAttribute('id')] = node
# Remove empty properties
for node in self._dom.getElementsByTagName('property'):
if not node.childNodes:
node.parentNode.removeChild(node)
# Convert Gazpachos UI tag
for node in self._dom.getElementsByTagName("ui"):
self._convert_ui(node)