[Geany-Devel] How can a plugin invoke menu items/geany actions?
Matthew Brush
mbrush at xxxxx
Wed Dec 20 22:46:05 UTC 2017
On 2017-12-20 01:37 PM, Lars Paulsen wrote:
> Hi All,
>
> I would like to start actions in geany from inside a geany plugin?
>
> E.g. start the Color Chooser as if it was selected from the geany tools
> menu.
> I tried to call the callback function directly but that gives an linker
> error for geany plugins (just logical).
>
> Can I fire/send an event/message to make it being started? How do I do
> that?
>
If you happen to find one that's not available as a keybinding command,
you can also use `ui_lookup_widget()` to get a handle on the menu item
and then activate it through code (ie. `gtk_actionable_activate()` or
something). This is kind of brittle, but it does work.
Regards,
Matthew Brush
More information about the Devel
mailing list