From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16306.4493.522709.269560 at akasha.ijm.jussieu.fr> Date: Wed, 12 Nov 2003 11:55:09 +0100 To: Claudio Sacerdoti Coen Cc: lablgtk at kaba.or.jp Subject: Re: GTree row selection event In-Reply-To: <20031110105058.GA19281 at cs.unibo.it> References: <20031107100532.GA17659 at cs.unibo.it> <20031110104118V.garrigue@kurims.kyoto-u.ac.jp> <20031110105058.GA19281@cs.unibo.it> Hi, Claudio Sacerdoti Coen [Monday 10 November 2003] : > I do. But still it has some problems: > > 1. no event structure (I can not detect a double-click) It quite easy to construct an event_ops object even if the widget class does not provide an #event method : let make_event w = if w#misc#get_flag `NO_WINDOW then failwith "widget cannot receive events" else new GObj.event_ops w#as_widget This function checks whether the widget has an associated GdkWindow (IIRC it's a requirement for receiving X events and event signals) and then builds an event_ops object. HTH, -- Olivier