Date: Fri, 21 Apr 2006 10:26:27 +1000 From: Erik de Castro Lopo To: lablgtk at math.nagoya-u.ac.jp Subject: Re: Low level lablgtk2 hacking Message-Id: <20060421102627.29737728.ocaml-erikd at mega-nerd.com> In-Reply-To: <20060420.214634.130239652.garrigue at math.nagoya-u.ac.jp> References: <4446BCBB.2050502 at rftp.com> <17478.50853.459149.712593@karryall.dnsalias.org> <20060420223639.3fdae084.erikd@mega-nerd.com> <20060420.214634.130239652.garrigue@math.nagoya-u.ac.jp> Organization: Erik Conspiracy Secret Labs Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 1688 Jacques Garrigue wrote: > LablGTK tries to be both close enough to GTK+ so > that the original documentation is still relevant, I think it misses the mark here :-). I am very comfortable with C but have done very little with GTK+ and was able to get pretty much exactly what I wanted without too much pain. My Ocaml coding skills are not as strong as my C skills and until using lablgtk I hadn't used the object oriented parts of the language. The methodology that is currently bearing the most fruit is: a) Figure out how to do it in C/GTK+. b) Grep for same concepts in the lablgtk2 *.mli files. c) Goolge for "concept lablgtk2". Step c) will usually get me a code snippet that works. > You could also try using glade. If the interface is simple enough, it > could ease the building a lot, while letting you control everything > from ocaml. I'm so close now I can almost taste it but I may well try glade next time. Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "It's pretty simple. [Large companies are] allowed to own either a content creation empire - a studio or label - or a playback device empire (Walkmans, or PCs). But ... can't have both." -- Andrew Orlowski -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Indeed, I am impressed that Google runs an 8,000 node Linux cluster, 5 data centers, an extensive network, and a rapidly evolving application all with a staff of 12." -- http://research.microsoft.com/~gray/papers/FAAMs_HPTS.doc