At 29.06.2013 13:13, Bao Niu wrote:There is one obvious bug in your code: you are supposed to pass the function as paramter to register_callback, not the return value of your function.
I tried this in my code:
dia.register_callback("ModKeys", "<Display>/Database/ModKeys", mod_keys())
- You are not supposed to create top level menu entries
I was expecting that there would be a new menu called "Database" showing up
in the top, but instead it is "ModKeys=>Activate", what is the logic of
menupath here?
just from the plug-in
- If you really need such it has to be added to the corresponding
ui file first (integrate-ui.xml or display-ui.xml)
- The random text in the menu might be an artifact coming from your script.
In my experiments I haven't seen such.If you want help debugging your source it is generally a good idea to provide a minimal working example exhibiting the behavior you don't understand.
I couldn't find documentation on this topic in our forum.> Could anybody please help explain a bit? Many thanks.
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
_______________________________________________
dia-list mailing list
dia-list gnome org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia