[Geany] Plugin Manager and important API change

Enrico Tröger enrico.troeger at xxxxx
Tue Nov 20 18:37:18 UTC 2007


On Tue, 20 Nov 2007 19:30:01 +0100, Enrico Tröger
<enrico.troeger at uvena.de> wrote:

> - If your plugin needs some configuration, you can add a function with
> the following signature:
> void configure(GtkWidget *parent);
> Geany will call this function everytime an user click on the
> preferences button in the Plugin Manager. Your code should create a
> dialog to provide some configuration options. The passed widget is a
> reference to the Plugin Manager dialog and should be used as parent
> window for your dialog.
I forgot to mention:
If you save any configuration options or other information to disk, you
should save all file of your plugins into ~/.geany/plugins/pluginname/.
Your code should use something like:
app->configdir G_DIR_SEPARATOR_S plugins G_DIR_SEPARATOR_S pluginname
G_DIR_SEPARATOR_S
to create the directory and remember creating the directory. I just
added utils->mkdir() to the plugin API.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20071120/36e2cd7c/attachment.pgp>


More information about the Users mailing list