Date: Mon, 22 Sep 2003 08:55:21 +0200 From: Francois Pottier To: lablgtk at kaba.or.jp Subject: Re: Misc questions Message-ID: <20030922085521.A30725 at pauillac.inria.fr> Reply-To: Francois.Pottier at inria.fr References: <20030921111027.A12292 at pauillac.inria.fr> <87llsifhlq.dlv at wanadoo.fr> <20030921180318.A7068 at pauillac.inria.fr> <20030922101819Y.garrigue at kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <20030922101819Y.garrigue at kurims.kyoto-u.ac.jp>; from garrigue at kurims.kyoto-u.ac.jp on Mon, Sep 22, 2003 at 10:18:19AM +0900 Hi Jacques, On Mon, Sep 22, 2003 at 10:18:19AM +0900, Jacques Garrigue wrote: > The answer is that row references are (at least in theory) needed for > this example, but not properly wrapped yet as we did not need them > yet. OK, then consider my message a request for a high-level interface to them :) > If you need some functionality in the Gtk modules, you may access it > by using some casts (but no magic, please) > GtkTree.RowReference.create (model#as_model :> Gtk.tree_model Gtk.obj) I must say I have no idea why this cast makes any sense. As far as I can tell, the type of [model#as_model] is Gtk.tree_model, which is declared as a synonym for [`treemodel] Gtk.obj. (By the way, are [Gtk.obj] and [Gobject.obj] the same type? This is confusing.) Why is it legal to cast it up to Gtk.tree_model Gtk.obj? The answer is beyond me. This is a point that I would very much like to understand. > Same thing for Window.maximize, you can use it directly (it is > available as GtkWindow.Window.maximize), but we will add it to the > window class in the next release. It doesn't seem to be available in GtkWindow.Window, at least not in the 20030828 snapshot. > The situation is that there are so many functions in GTK that we have > not yet assessed which are useful and which are not. Are all of them currently available at the low level? (I mean, can I, in principle, access every GTK feature without modifying LablGTK?) -- François Pottier Francois.Pottier@inria.fr http://pauillac.inria.fr/~fpottier/