[Geany-devel] get build command from a plugin

Lex Trotman elextr at xxxxx
Fri Feb 3 22:23:33 UTC 2012


Hi Dimitar,

On Sat, Feb 4, 2012 at 6:43 AM, Dimitar Zhekov <dimitar.zhekov at gmail.com> wrote:
> On Thu, 2 Feb 2012 10:14:15 +1100
> Lex Trotman <elextr at gmail.com> wrote:
>
>> It would be really good if someone other than me tests it, my test
>> plugin is rather dumb.
>
> I tested with the following code in plugin_init():
>
> build_set_menu_item(GEANY_BCS_PROJ, GEANY_GBG_EXEC, 1, GEANY_BC_LABEL,
> "boza");
>
> And, after I open a project and load the plugin, Set Build Commands
> looks like this: <<attachment>>

Thanks for testing.

I can't reproduce this, I put your line exactly in the plugin_init of
demoplugin, and although it led me to a bug updating the menu that I
have fixed, the project properties dialog was fine.

Can you post the problem plugin, or better reproduce the problem with
demoplugin so we can eliminate other issues.

>
> Tested with the previous BuildFuncs version (without group_count).
> Execute command #1 initially exists but with all fields empty.
>
> --
>
> In plugin.h BuildFuncs, void (*build_remove_menu_item), and void
> (*build_set_menu_item) are indented with spaces instead of tabs.
>

Fixed (why Geany decided to switch I don't understand, I just push the
tab key and it does the rest :)

Cheers
Lex

> --
> E-gards: Jimmy
>
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>



More information about the Devel mailing list