diff options
author | David Zeuthen <davidz@redhat.com> | 2011-02-14 08:03:16 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-02-14 08:03:16 -0500 |
commit | 6f441c079f39d05cfbf7fb0786aa6d0da8edc35e (patch) | |
tree | 3501e7768b1fbcacd1e833bea98e098e2411d8b0 | |
parent | 749d931cef79ea9acce0e9e4e8da36304303d551 (diff) |
Make annotations passed on command-line take precedence
Otherwise this command-line won't work
python ./codegen.py --namespace Zee org.project.xml --strip-prefix \
org.project. --generate-c-code generated --annotate com.acme.Rocket \
org.gtk.GDBus.Name Raket
since org.project.xml already has a org.gtk.GDBus.Name annotation for
the com.acme.Rocket interface.
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | src/codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.py b/src/codegen.py index fb49ee3..647421e 100644 --- a/src/codegen.py +++ b/src/codegen.py @@ -2214,7 +2214,7 @@ def apply_annotation(iface_list, iface, method, signal, prop, arg, key, value): target_obj = prop_obj else: target_obj = iface_obj - target_obj.annotations.append(dbustypes.Annotation(key, value)) + target_obj.annotations.insert(0, dbustypes.Annotation(key, value)) def apply_annotations(iface_list, annotation_list): |