[Geany-devel] GObject, new plugin interface .... & Vala bindings

Nick Treleaven nick.treleaven at xxxxx
Sat Apr 30 15:14:24 UTC 2011

On Sat, 30 Apr 2011 22:46:32 +1000
Lex Trotman <elextr at gmail.com> wrote:

> Hi Nick, I have suggested that the new plugin API be GObjects which
> are just thin shells referring everything to the existing Geany
> structures like GeanyDocument.  The GObject methods just called one or
> more Geany functions that work on the existing structures.  The only
> disruption I can see in core would be that it would need to emit the
> signals on these objects.
> Even if there is one GObject per Geany structure (well the ones needed
> by plugins anyway) this would somewhat insulate the plugin interface
> from changes in the Geany structures since the GObject methods can be
> pointed at different places in the core without affecting the plugin
> API.
> Since there is this insulation I tried to start the discussion whether
> the best set of GObjects was to have one per Geany structure or a
> different set of GObjects that used more than one Geany structure,
> making the GObjects a little more complicated but their use by plugins
> easier.  But the discussion didn't seem to go anywhere.
> But when I queried how these GObjects could be written in Vala no one
> knew since its documentation is a bit lacking (as in missing entirely)
> when it comes to interfacing to C.

Thanks for explaining. I still feel against the idea, but I won't try
to veto it.


More information about the Devel mailing list