Re: Provide a python script to dia on the command line

2014-09-22 Thread Hans Breuer
Hi Martin, Am 16.09.2014 um 11:34 schrieb Martin Metzker: Hello list! I think I have a viable patch now, for command line provided python scripts in dia. Going over the changes: ... moved the definition of struct _PluginInfo from lib/plug-ins.c to lib/plug-ins.h, because I need this struct in a

Re: Provide a python script to dia on the command line

2014-09-16 Thread Martin Metzker
Hello list! I think I have a viable patch now, for command line provided python scripts in dia. Going over the changes: ... moved the definition of struct _PluginInfo from lib/plug-ins.c to lib/plug-ins.h, because I need this struct in app/app_procs.c. not ok. To avoid this please use dia_plug

Re: Provide a python script to dia on the command line

2014-09-11 Thread Martin Metzker
Hi Hans, I'm having "dia_is_interactive = FALSE" if the -i option is provided, however I already have half a mind to remove this limitation, but there are implications to consider first. Could elaborate a bit more about the implications? Or is it just that you don't have a use case yet? Ther

Re: Provide a python script to dia on the command line

2014-09-11 Thread Hans Breuer
Hi Martin, Am 11.09.2014 um 12:55 schrieb Martin Metzker: [...] I can "dia -i foo.py" to make dia execute foo.py. The script is executed _after_ all modules have been loaded, right before handle_all_diagrams() is called. (This allows using dia's python capabilities to modify diagrams right before