From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA21470; Sun, 22 Sep 2002 12:13:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA21629 for ; Sun, 22 Sep 2002 12:13:14 +0200 (MET DST) Received: from holmes.infopro.spb.su (holmes.infopro.spb.su [195.242.2.2]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g8MADDD10387 for ; Sun, 22 Sep 2002 12:13:14 +0200 (MET DST) Received: from stapleton.peterlink.ru (stapleton.peterlink.ru [195.242.2.5]) by holmes.infopro.spb.su (8.9.1/8.9.1) with ESMTP id OAA01267 for ; Sun, 22 Sep 2002 14:13:12 +0400 (MSD) Received: from spb-4-93.dialup.peterlink.ru (IDENT:mitya@spb-4-93.dialup.peterlink.ru [195.242.19.93]) by stapleton.peterlink.ru (8.12.3/8.12.3) with ESMTP id g8MACaQT060602 for ; Sun, 22 Sep 2002 14:12:36 +0400 (MSD) Subject: Re: [Caml-list] LablGTK: how to create a widget from external pointer From: Dmitry Lomov To: caml-list@inria.fr In-Reply-To: <1032682361.27553.2.camel@eddie> References: <1032682361.27553.2.camel@eddie> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 22 Sep 2002 14:15:23 +0400 Message-Id: <1032689725.28137.13.camel@eddie> Mime-Version: 1.0 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk After an hour of reading LablGTK sources, it turned out to be pretty easy. I can share the results if anyone interested. Sorry for my impatience, Dmitry > I do not know whether LablGTK questions are appropriate here, > so I apologize in advance... > > I am writing a plugin for some GTK program (JPilot, actually) > and I would like to write a GUI part of plugin in OCaml. > Plugin shows its GUI in parent program's window, and it obtains > parent GTK widgets from parent program. This of course happens > in C world, that is, in C world I have one or two 'GTKWidget*'s > Is it possible to move those pointers to LablGTK world, > that is to obtain GObj.widget from them? > > Sorry if this is a FAQ... -- Dmitry Lomov IntelliJ Labs / JetBrains Inc. http://www.intellij.com "Develop with pleasure!" ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners