Re: libseed-list Advanced use of Gtk.TreeView
- From: "Alan Knowles" <alan akbkhome com>
- To: "Olivier Tilloy" <olivier tilloy net>
- Cc: libseed-list gnome org
- Subject: Re: libseed-list Advanced use of Gtk.TreeView
- Date: Fri, 28 May 2010 13:33:48 +0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]