summaryrefslogtreecommitdiff
path: root/contrib/generate-version-script.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/generate-version-script.py')
-rwxr-xr-xcontrib/generate-version-script.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/generate-version-script.py b/contrib/generate-version-script.py
index 408199f..c4ee238 100755
--- a/contrib/generate-version-script.py
+++ b/contrib/generate-version-script.py
@@ -50,9 +50,6 @@ class LdVersionScript:
# choose the lowest version method for the _get_type symbol
version_lowest = None
- if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
- return
- type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
# add all class methods
for node in cls.findall(XMLNS + 'method'):
@@ -68,6 +65,10 @@ class LdVersionScript:
if not version_lowest or version_tmp < version_lowest:
version_lowest = version_tmp
+ if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
+ return
+ type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
+
# finally add the get_type symbol
if version_lowest:
self.releases[version_lowest].append(type_name)