To: tkb at tkb.mpl.com Cc: lablgtk at kaba.or.jp Subject: Re: Getting primary selection in Lablgtk? In-Reply-To: <200205091721.g49HLX988829 at tkb.mpl.com> References: <200205091721.g49HLX988829 at tkb.mpl.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020527194041I.garrigue at kurims.kyoto-u.ac.jp> Date: Mon, 27 May 2002 19:40:41 +0900 From: Jacques Garrigue Lines: 21 From: "T. Kurt Bond" > How would I get a copy of the primary selection in Lablgtk? There is no support for this in the current distribution. I've just added it reading your mail. You can download it. The way to use it is a bit strange (but this seems correct according to GTK docs) $ lablgtk -thread Objective Caml version 3.04+12 (2002-05-27) # let w = GWindow.window ~show:true ();; val w : GWindow.window = # w#misc#connect#selection_received (fun sel ~time -> prerr_endline sel#data);; - : GtkSignal.id = # w#misc#convert_selection ~sel:`PRIMARY ~target:(Gdk.Atom.intern"STRING") ~time:0;; - : bool = true # "T. Kurt Bond" Jacques