[Geany] event system
blackdog
blackdog at xxxxx
Tue Jul 31 02:31:05 UTC 2007
Hang on, being a bit stupid here, I guess I could just hook
into the Gtk event system with g_signal_connect, as I think you can have
more than one event attached.
Doh!
On Mon, 30 Jul 2007 21:59:06 -0400
blackdog <blackdog at ipowerhouse.com> wrote:
>
> With the advent of the plugin system i think it would be very useful
> if geany had a method of firing events for plugins. Right now I have
> implemented the sci_ functions in the plugin interface but of course
> this is one way traffic.
>
> One of the things i was hoping for was to be able to hook in the
> non-standard haxe code completion via the plugin but this would not be
> possible as the event needs to be fired from
> editor_start_auto_complete, i.e. initiated on the geany side rather
> than the plugin side.
>
> If the plugin interface had a means of registering a callback,
>
> plugin_register(AUTO_COMPLETE,myautocompletfunction) ;
>
> which would add myautocompletefunction to a linked list of functions
> for this event, then in editor_start_auto_complete it could maybe call
>
> plugin_event(AUTOCOMPLETE, params) ;
>
> or something to this effect would be very useful. Ultimately all
> the on_ functions should do the same, firing events for any registered
> plugins.
>
> Anyone been thinking along these lines? Similarly for key events too.
>
> thx
>
> bd
--
http://www.blackdog-haxe.com/
"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti
--
http://www.blackdog-haxe.com/
"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti
More information about the Users
mailing list