[Geany-devel] Plugin problem

Lex Trotman elextr at xxxxx
Mon Nov 1 09:56:25 UTC 2010


On 1 November 2010 18:33, WILLIAM FRASER <william.fraser at virgin.net> wrote:
> Hello one and all,
>
> I've written my first plugin for geany. Having been a long time user of
> ConTEXT, I've written a plugin that implements numbered bookmarks. I also
> made it remember the state of folds in a document and applies them when you
> open the document again.
>
> The numbered bookmarks bit is working, but the but that remembers the fold
> state has a bug, and I'd be most apreciative if anyone had any ideas. The
> problem lies on line 443. For some reason if I get rid of the
> dialogs_show_msgbox call then the fold state is not re-applied, and if it is
> included then the fold state is re-applied. I can't think of any reason why
> this is so. I use messages to help me debug, so I use calls like
> dialogs_show_msgbox to tell me what's going on, but It makes the plugin a
> pain to use if left in the final code. I have tried using gdb but despite
> compiling with the -g or the -ggdb arguments I can't get gdb to use line
> numbers of have any idea of the source code, so I can't monitor what's going
> on.
>
> I'd be most grateful if anyone can spot what's going on here.
>
> William Fraser
>

Not sure if its part of the problem, but I notice that line 436
responds GTK_RESPONSE_OK which is not a case in the switch(l)
statement at line 445 so it should do default which makes it do
nothing.

Cheers
Lex

> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>
>



More information about the Devel mailing list