[Geany-Devel] Problems calling ui_update_statusbar from a plugin

Abel akronix5 at xxxxx
Sat Oct 31 09:43:27 UTC 2015


And why is not such function in the API? It's very used across all the
geany code and there's no reason to think a plugin wouldn't ever want to
use it.

I want to display the document statistics of the document opened on split
window when it gets the focus. ui_set_statusbar() let you display text but
doesn't give you access to create_statusbar_statistics() neither to
DEFAULT_STATUSBAR_TEMPLATE.

Saludos,

*                                                        Abel.*

On 31 October 2015 at 03:59, Lex Trotman <elextr at gmail.com> wrote:

> See the big warning message at the start of the plugins doco
> http://www.geany.org/manual/reference/ "Do not use any symbol not in
> the documentation".
>
> On more recent versions of Geany the restriction on use of functions
> not in the API is better enforced to reduce the risk of accidental
> use.  Functions not in the API never worked on Windows I believe, so a
> plugin that used non-API functions was not portable as well as
> possibly breaking without warning.
>
> Can you not use
>
> http://www.geany.org/manual/reference/ui__utils_8h.html#aa0948006d2f45a2a2a6b7da40169b8ac
>
> Cheers
> Lex
>
> On 31 October 2015 at 12:47, Abel <akronix5 at gmail.com> wrote:
> > Hi!
> >
> > I'm hacking split window plugin and I wanted to use the function
> > ui_update_statusbar(), located in ui_utils.h
> >
> > When I try to compile I get the following warning:
> >
> > "warning: implicit declaration of function 'ui_update_statusbar'
> > [-Wimplicit-function-declaration]"
> >
> > And if I try yo execute the bin generated it doesn't allow you to enable
> > that plugin, it is never shown anymore.
> >
> > The plugin includes geanyplugin.h which in turn includes ui_utils.h
> >
> > Some help or hints?
> >
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.geany.org
> > https://lists.geany.org/cgi-bin/mailman/listinfo/devel
> >
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20151031/d6959626/attachment.html>


More information about the Devel mailing list