Hi ...
I have two small questions regarding Geany and plugins.
1. is it possible to make debug output from a Geany plugin ? I have tried "geany_debug", but this symbol is not visible to the plugin.
2. There where some talk about plugins authors (non Geany authors) and geany svn, will it be possible to add plugins to the Geany svn repos maintained by non Geany dev's, in the near future ? I really like to see the lua plugin there if this will be the case :-)
Regards
/BL
On Wed, 02 Jan 2008 20:48:31 +0100, Bo Lorentsen bl@lue.dk wrote:
Hi ...
I have two small questions regarding Geany and plugins.
- is it possible to make debug output from a Geany plugin ? I have
tried "geany_debug", but this symbol is not visible to the plugin.
Just use g_message, g_warning and so on. geany_debug is doing almost the same as g_message. Basically, you can use the GEANY_DEBUG macro and the app->debug_mode flag in plugins and then you can add some similar code as it is in geany_debug().
- There where some talk about plugins authors (non Geany authors)
and geany svn, will it be possible to add plugins to the Geany svn repos maintained by non Geany dev's, in the near future ? I really like to see the lua plugin there if this will be the case :-)
I'll answer this in a new thread(Common SVN repository for plugins). But for the Lua plugin, ask Jeff ;-).
Regards, Enrico
On Jan 2, 2008 2:48 PM, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 02 Jan 2008 20:48:31 +0100, Bo Lorentsen bl@lue.dk wrote:
- There where some talk about plugins authors (non Geany authors)
and geany svn, will it be possible to add plugins to the Geany svn repos maintained by non Geany dev's, in the near future ? I really like to see the lua plugin there if this will be the case :-)
I'll answer this in a new thread(Common SVN repository for plugins). But for the Lua plugin, ask Jeff ;-).
It's not a problem for me, I always have access to the latest sources :-)
But seriously, I'll post some response to the other thread...
- Jeff
Enrico Tröger wrote:
- is it possible to make debug output from a Geany plugin ? I have
tried "geany_debug", but this symbol is not visible to the plugin.
Just use g_message, g_warning and so on. geany_debug is doing almost the same as g_message. Basically, you can use the GEANY_DEBUG macro and the app->debug_mode flag in plugins and then you can add some similar code as it is in geany_debug().
Ok, I will stick to g_message/g_warning while developing and then I only need to know how to write to the "status log" in the message window.
I'll answer this in a new thread(Common SVN repository for plugins).
Check ...
But for the Lua plugin, ask Jeff ;-).
He has seen it :-)
/BL
On Wed, 02 Jan 2008 22:46:24 +0100 Bo Lorentsen bl@lue.dk wrote:
Ok, I will stick to g_message/g_warning while developing and then I only need to know how to write to the "status log" in the message window.
You can use msgwindow->status_add("%s", "a status message"), but often you want to also show the message on the status bar, so use: ui->set_statusbar(TRUE, "%s", "a status message").
Regards, Nick