[Geany] getting project base_path from plugin

Enrico Tröger enrico.troeger at xxxxx
Tue Dec 25 14:15:12 UTC 2007


On Tue, 25 Dec 2007 11:31:52 +0100, Bo Lorentsen <bl at lue.dk> wrote:

> Yura Siamashka wrote:
> > 
> > #define app			geany_data->app
> > #define doc_array		geany_data->doc_array
> > #define prefs			geany_data->prefs
> > #define project			app->project
> I did not notice these, have not been working with C preprocessor for
> a while now, so this is easy to forget :-)
> 
> > geany_data->app->geany_data->app->project
> Yeps, this makes sense !
> 
> > use "project" instead of "app->project"
> Done, and it works, too  !
> 
> >> Also, how do I get noted if the project is changed or saved ?
> > see plugindata.h callbacks "project-open", "project-save",
> > "project-close".
> Hmm, I take a look again, thanks.
For an example see Nick's great signal example plugin
(http://lists.uvena.de/pipermail/geany/2007-August/001570.html).

Sometime I'll put this into a plugin howto...

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/20071225/0236a3b3/attachment.pgp>


More information about the Users mailing list