From: <jc...@gm...> - 2015-11-03 09:34:41
|
On 3 November 2015 at 09:04, cedlemo <ce...@gm...> wrote: > On 03/11/2015 07:46, Michael Uplawski wrote: >> I try to understand GObject-Introspection to manipulate Gnumeric. >> Apart from the method-listings and an almost empty ri-output, I find no >> document dealing the topic. >> >> A working Python equivalent, which by use of the gi module writes >> 'hello world' into a table cell is impossible to reproduce in Ruby as >> the available documentation does not correspond, trial and error lead >> nowhere. Hi, like cedlemo I'm not much of an expert, but I have made a binding for my own gobject-based library here: https://github.com/jcupitt/ruby-vips8 I used the binding for gst as a model, it's pretty simple to understand: https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb Just copy-paste that and change the names to refer to the gnumeric objects instead and it should work. The gst binding does some extra renaming and overriding to make the interface pleasant to use, you probably won't need that, at least to start with. John |