Date: Thu, 14 Dec 2000 12:15:01 +0100 To: Jacques Garrigue Cc: luther at dpt-info.u-strasbg.fr, lablgtk at kaba.or.jp Subject: Re: some lablgtk/lablGL questions ... Message-ID: <20001214121501.A3244 at lambda.u-strasbg.fr> References: <20001211163431.A15168 at lambda.u-strasbg.fr> <20001212104754R.garrigue at kurims.kyoto-u.ac.jp> <20001213133913.A1582 at lambda.u-strasbg.fr> <20001213231654N.garrigue at kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20001213231654N.garrigue at kurims.kyoto-u.ac.jp>; from garrigue at kurims.kyoto-u.ac.jp on Wed, Dec 13, 2000 at 11:16:54PM +0900 From: Sven LUTHER Sender: Sven LUTHER On Wed, Dec 13, 2000 at 11:16:54PM +0900, Jacques Garrigue wrote: > From: Sven LUTHER > > > Another set of questions/remarks : > > > > * How do i use polymorphic variants that are inside of modules without > > opening them ? both Module_A.`Var_A and `Module_A.Var_A don't work. > > That's what's nice about polymorphic variants: no need to open a > module, or use a dot notation. > `Var_A is just `Var_A, independently of the type in which it is used. mmm, forgot about that, ... > > * Why are the coordinates of the button_press event floats and not ints ? > > Because this is the way it is defined in gdk (see include/gdk/gdktypes.h). > I suppose some pointing device might return non-integer values ? Ok, i didn't know that. > > * The clist#get_row_column has problem, the column coordinate is always 0, > > and the row coordinate seems to be divided by 2 (well i hadn't time to > > check it, but seems like an additional Int_Val/Val_Int was used. Maybe the > > float->int conversion i was forced to use caused this problem also.) > > Right, division by 2 is the classical consequence of forgetting a Val_int. > This also explains the problem if there are only two columns. > Here is a checked patch. Yes i looked at it this morning, and did the same change as is in your patch (should have looked yesterday). Friendly, Sven Luther