Re: libseed-list Advanced use of Gtk.TreeView



I believe he means it's upstream in Gtk+ Git. gir-repository is going away (it was a stopgap while people moved gir generation into respective projects), and is not really being updated.

Tim Vera

On May 28, 2010, at 5:45, Olivier Tilloy <olivier tilloy net> wrote:

> Thanks a lot Alan, compiling this updated gir file fixed my issues!
> 
> However, I don't quite understand when you say it is fixed upstream. My
> previous gir file was that of gir-repository git master, presumably the
> most up-to-date version, still it is very different from the one
> available on your server. Do you mean that the branch at
> git://git.gnome.org/gir-repository is not "upstream"?
> 
> Do you reckon it would be worthwhile filing a bug in ubuntu about the
> broken gir file and hope a minimal fix (it that is possible) could make
> it to the current release in order to make seed usable with Gtk?
> 
> Anyway, thanks a bunch, I'm now going back to writing my extension for
> epiphany, I'll hopefully keep this list posted soon about how cool it is!
> 
> Regards,
> 
> Olivier
> 
> 
> On 2010-05-28, Alan Knowles <alan akbkhome com> wrote:
>> The gir / typelib you are using is incorrect.
>> ** Message: [INVOCATION] seed-engine.c:599: Invoking method: set_column_types with 2 'in' arguments and 1 'out' arguments
>> should say this.
>> ** Message: [INVOCATION] seed-engine.c:609: Invoking method: set_column_types with 3 'in' arguments and 0 'out' arguments
>> 
>> Basically there are bugs with the one shipped on ubuntu - it's fixed upstream.
>> 
>> Quick easy fix is 
>> wget http://devel.akbkhome.com/seed/Gtk-2.0.gir
>> g-ir-compiler Gtk-2.0.gir -o /usr/lib/girepository-1.0/Gtk-2.0.typelib
>> 
>> Regards
>> Alan
>> 
>> 
>> --- On 28/May/2010, Olivier Tilloy wrote: 
>>> Thanks for the hints Alan!
>>> 
>>> I got the latest version of seed up and running, and I'm writing a
>>> standalone example to ease my tests, and unfortunately I'm getting stuck
>>> even earlier now :(
>>> Here is what I did, with my configuration:
>>> 
>>> - Running Ubuntu 10.04, with GLib 2.24.1 and GTK 2.20.0.
>>> 
>>> - Grabbed gobject-introspection 0.6.12 (tarball), compiled and installed it.
>>> - Grabbed Seed 2.31.1 (tarball), compiled (with --enable-debug) and
>>> installed it.
>>> - Grabbed the latest gir-repository (git), compiled and installed it.
>>> 
>>> - Grabbed the latest seed-examples, gtktreeview.js works (although with
>>> some warnings).
>>> 
>>> I'm attaching my standalone example (a simple TreeView populated with a
>>> TreeStore), along with the output I get when running it with
>>> --seed-debug=all, hoping that someone may point out what I'm doing wrong
>>> and how to fix it.
>>> 
>>> Regards,
>>> 
>>> Olivier
>>> 
>>> 
>>> On 2010-05-26, Alan Knowles <alan akbkhome com> wrote:
>>>> you may need a more recent build of seed to get get_cursor to work, or try using this gir
>>>> http://devel.akbkhome.com/seed/Gtk-2.0.gir
>>>> g-ir-compiler Gtk-2.0.gir -o /usr/lib/girepository-1.0/Gtk-2.0.typelib
>>>> 
>>>> I suspect the version of seed you are using may not handle out args that well..
>>>> 
>>>> the api docs for it are here.
>>>> http://devel.akbkhome.com/seed/Gtk.TreeView.html
>>>> 
>>>> If gir and seed are uptodate this should work, although I've not tested it.
>>>> print(tree.get_cursor().path.to_string());
>>>> 
>>>> This is the other way to get it..
>>>> var iter = new Gtk.TreeIter();
>>>> var selection =  tree.get_selection(null, iter); 
>>>> print(tree.get_model().get_path(iter).to_string());
>>>> 
>>>> Note if path is not set, then they will fail
>>>> check with view.get_selection().get_selected_rows(view.get_model())  to see how may rows are set..
>>>> 
>>>> There is alot of treeview code here to look at.
>>>> http://git.akbkhome.com/?p=app.Builder.js;a=blob;f=Builder/Window.js
>>>> 
>>>> 
>>>> Regards
>>>> Alan
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]