Message-ID: <3F4C6C98.10701 at free.fr> Date: Wed, 27 Aug 2003 10:32:24 +0200 From: isa oger Reply-To: ogeri at free.fr MIME-Version: 1.0 Cc: lablgtk at kaba.or.jp Subject: Re: unselect a subtree References: <3F4B3D82.7050903 at free.fr> <20030827112856D.garrigue at kurims.kyoto-u.ac.jp> Content-Type: multipart/alternative; boundary="------------090708050702040401040007" --------------090708050702040401040007 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Jacques Garrigue wrote: >From: isa oger > > > >>I have a Gtree with subtree. When a subtree is selected and that this >>subtree become >>unvisible (because I close its "father"), I would like that this subtree >>become no >>more selected (which is not the case). Can you help me, I have no >>documentation >>about lablgtk except the signature of the fonction given in Ocamlbrowser. >> >> > >OK, looking only with ocamlbrowser, it seems that you could cook >something using: > > tree_item#connect#collapse on all subtrees > tree#unselect_item on all children > tree#children / treeitem#subtree to recurse on subtrees > >For a precise documentation of each method, you should look at Gtk's >documentation. > GtkTreeItem::collapse (signal) > gtk_tree_unselect_item > gtk_container_children > gtk_tree_item_get_subtree > >Jacques > > > > > thank you!!! it works! isabelle --------------090708050702040401040007 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Jacques Garrigue wrote:
From: isa oger <ogeri@free.fr>

  
I have a Gtree with subtree. When a subtree is selected and that this 
subtree become
unvisible (because I close its "father"), I would like that this subtree 
become no
more selected (which is not the case). Can you help me, I have no 
documentation
about lablgtk except the signature of the fonction given in Ocamlbrowser.
    

OK, looking only with ocamlbrowser, it seems that you could cook
something using:

  tree_item#connect#collapse   on all subtrees
  tree#unselect_item           on all children
  tree#children / treeitem#subtree    to recurse on subtrees

For a precise documentation of each method, you should look at Gtk's
documentation.
  GtkTreeItem::collapse (signal)
  gtk_tree_unselect_item
  gtk_container_children
  gtk_tree_item_get_subtree

Jacques



  
thank you!!! it works!
isabelle

--------------090708050702040401040007--