Re: [Zim-wiki] Problem with empty $$self{settings}{drawtiming} in plugin

2009-04-12 Thread Svenn Are Bjerkem
Hi Jaap,

2009/4/12 Jaap Karssenberg :
> Look to me the code is good. Did you check how the config file looks ? Might
> be something like the config file actually contains an empty string for this
> setting and blocks the default from being used.

excellent advice to check the config!! New to plugin programming for
zim, and I haven't looked at the config before.
Reason for failure was that I had first copied and modified
DiagramEditor.*, but not actually changed the $dot variables and the
applications assigned because I wanted to check that zim actually
found my plugin. Turned out that dot=dot %2 -Tpng %1 was still
registered under [TimingEditor Plugin] in the
~/.config/zim/default.conf file. When I changed that to the drawtiming
setting I wanted to use, the plugin works as expected.

Thanks a lot

-- 
Svenn

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Problem with empty $$self{settings}{drawtiming} in plugin

2009-04-12 Thread Jaap Karssenberg

Svenn Are Bjerkem wrote:

Somehow my registering into the settings has a snag. Any idea what to look for?
  


Look to me the code is good. Did you check how the config file looks ? 
Might be something like the config file actually contains an empty 
string for this setting and blocks the default from being used.


If that is not the case please send me the patch and I will try 
debugging it.


Regards,

Jaap

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp