On Tue, 20 Nov 2007 19:30:01 +0100, Enrico Tröger enrico.troeger@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