From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: E.Maclean@ed.ac.uk
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] lablgtk GTree problem
Date: Tue, 06 Mar 2007 09:31:12 +0900 (JST) [thread overview]
Message-ID: <20070306.093112.108980630.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <d0fbb16b0703051622w13f2885eh5e4a9b277b8468fa@mail.gmail.com>
From: "Ewen Maclean" <E.Maclean@ed.ac.uk>
> let on_row_activated (view:GTree.view) nps path column =
> let model = view#model in
> let row = model#get_iter path in
> let name = model#get ~row ~column:str_col in
> uprint ("Double-clicked row contains name " ^ name) ()
>
> what I want is to work out is the integer index of row in the path. I read
> somewhere that I could use path#get_indices to return an array of integers
> which would tell me, but it tells me that path has no method get_indices.
Not surprising: a path is not an object :-)
You should use the function GTree.Path.get_indices.
Jacques Garrigue
prev parent reply other threads:[~2007-03-06 0:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 0:22 Ewen Maclean
2007-03-06 0:31 ` Jacques Garrigue [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070306.093112.108980630.garrigue@math.nagoya-u.ac.jp \
--to=garrigue@math.nagoya-u.ac.jp \
--cc=E.Maclean@ed.ac.uk \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox