@Lex, @Matthew: thanks for the quick response.

On 20.12.2017 23:46, Matthew Brush wrote:
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

_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel

_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel

Reply via email to