[Geany-devel] get build command from a plugin
elextr at xxxxx
Fri Feb 3 22:23:33 UTC 2012
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,
> 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 :)
> E-gards: Jimmy
> Geany-devel mailing list
> Geany-devel at uvena.de
More information about the Devel