Hello Enrico,<br><br>Thanks for replying. I didn't understand how it was working, since I directly open the sciwrappers.h file :-) It's all right now !<br><br>Regards,<br>Cedric<br><br><div class="gmail_quote">2009/8/16 Enrico Tröger <span dir="ltr"><<a href="mailto:enrico.troeger@uvena.de">enrico.troeger@uvena.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sun, 16 Aug 2009 21:11:51 +0200, Cédric wrote:<br>
<br>
Hi,<br>
<br>
answering your mails is hard the way you quote.<br>
<br>
About your initial question abut including sciwrappers.h:<br>
the order of header includes is important, I think I already told<br>
you that in another thread.<br>
First include geany.h, then other Geany includes like document.c or<br>
sciwrappers.h, then include pluginmacros.h and geanyfunctions.h. You<br>
can't include headers randomly. See other plugins how they do it.<br>
<br>
All stuff Colomban explained with PLAT_GTK and ScintillaObject<br>
declaration is not true as long as you include geany.h. That does all<br>
the necessary stuff for you. Check this file to get a clue.<br>
<br>
<br>
And last but not least, since Geany 0.18 it's recommended to *only*<br>
include geanyplugin.h which does everything for you. But obviously you<br>
need Geany 0.18 for this and you need to adjust the required plugin API<br>
version in your plugin accordingly (that is set it to 150).<br>
<div class="im"><br>
<br>
>Okay thanks it compiles now :) But I still have a problem with a<br>
>function which is into sciwrapper.h. When I launch geany and open the<br>
</div><div class="im">>Can't load plugin: /usr/local/lib/geany/pretty-print.so: undefined<br>
>symbol: sci_scroll_columns<br>
<br>
</div>sci_scroll_columns() is not part of the plugin API. If you can't find a<br>
function in the plugin API docs<br>
(<a href="http://www.geany.org/manual/reference/" target="_blank">http://www.geany.org/manual/reference/</a>), you can't use it in your<br>
plugin. Either we add the function to the API but then you would<br>
require Geany 0.19 which is not yet released or you simply call the<br>
corresponding Scintilla message directly:<br>
<br>
scintilla_send_message(sci, SCI_LINESCROLL, columns, 0)<br>
<br>
<br>
<br>
Regards,<br>
Enrico<br>
<font color="#888888"><br>
--<br>
Get my GPG key from <a href="http://www.uvena.de/pub.asc" target="_blank">http://www.uvena.de/pub.asc</a><br>
</font><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>