summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-02-14 08:03:16 -0500
committerDavid Zeuthen <davidz@redhat.com>2011-02-14 08:03:16 -0500
commit6f441c079f39d05cfbf7fb0786aa6d0da8edc35e (patch)
tree3501e7768b1fbcacd1e833bea98e098e2411d8b0
parent749d931cef79ea9acce0e9e4e8da36304303d551 (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.py2
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):