Cc: Olivier Andrieu To: "lablgtk at kaba.or.jp" Subject: Re: Some question about lablgtk2 References: <16381.19081.326477.851368 at akasha.ijm.jussieu.fr> Message-ID: From: Artem Prisyznuk Content-Type: text/plain; format=flowed; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 08 Jan 2004 15:00:42 +0200 In-Reply-To: <16381.19081.326477.851368 at akasha.ijm.jussieu.fr> On Thu, 8 Jan 2004 13:18:17 +0100, Olivier Andrieu wrote: Thanks for quick replay. > Right now, no. But it should be feasible. > - for GtkTreeModel : we have to make a GObject that forwards all > methods of the GtkTreeModel interface to an ocaml object. If possible, do you give an simple example? > > 2) In gtk exists function gtk-tree-model-foreach, and > > gtk_tree_model_iter_has_child. > > > > It very useful for movement on tree_model. But I not found analog > > of these function in lablgtk. > > Yes, these functions are in the CVS now. I can send you a patch if you > want. > > 3) It is possible save my custom data type in model store. For > > ex. I need some like: > Right now, no. There's no point because the renderers wouldn't know > what to do with the caml value, but if custom renderers are available, > maybe. I think custom data type in store usefull not only for renderer, it's useful for quick find corresponding ocaml data structure for row. Now I add to dummy int column to column list which contain index of coresponding id of ocaml record. Next usefull features for custom data type may be used with gtk-tree-view-column-set-cell-data-func, but I not found it in current relase of lablgtk2. -- Artem Prysyznuk tema@sit.kiev.ua