Date: Fri, 11 May 2001 15:32:34 +0200 From: Nicolas GEORGE To: Benjamin Monate Cc: labgtk Subject: Re: Accessing labels of GTree.tree_item Message-ID: <20010511153234.A15252 at clipper.ens.fr> References: <20010511135448.43d7e413.Benjamin.Monate at lri.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20010511135448.43d7e413.Benjamin.Monate at lri.fr>; from Benjamin.Monate at lri.fr on Fri, May 11, 2001 at 01:54:48PM +0200 Le duodi 22 floréal, an CCIX, Benjamin Monate a écrit : > let my_tree = GTree.tree > ~show:true > () ;; If I am not wrong, true is the default for ~show, and is not requiered. > Now I want to access to the string "foo" and change it to "bar". > How can I do that ? TreeItem's are container. When you use ~label, it only creates automatically a GtkLabel child. So you must get it with #children (which should return a one element list), try_cast it into a label, and change the text. But GtkTree (and GtkList) are deprecated in Gtk, and should not be used in new projects. > By the way what are the reasons for GtkCTree not to be interfaced in > lablgtk ? It is interfaced in the low-level interface (module GtkTree.CTree), but not in the object-level interface.