Message-ID: <4446BCBB.2050502 at rftp.com> Date: Wed, 19 Apr 2006 15:42:03 -0700 From: Robert Roessler Organization: Robert's High-performance Software MIME-Version: 1.0 To: LablGTK List Subject: Re: Low level lablgtk2 hacking References: <20060420060312.67f8a4ee.ocaml-erikd at mega-nerd.com> In-Reply-To: <20060420060312.67f8a4ee.ocaml-erikd at mega-nerd.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Length: 1080 Erik de Castro Lopo wrote: > Is there some way to access GTK+/C functionality from Ocaml? > > For instance I would like to be able to call the GTK+/C function > gtk_scrolled_window_set_policy() for a lablgtk2 scrolled_window > object. Unfortunately, the lablgtk2 scrolled_window class does > not seem to expose this functionality. > > I actually have a number of problems of this type. Is there a > general solution? I was hoping this provided a pretext to bug Jacques about not publishing the import lib for LablGTK/Windows - but it has nothing to do with that. ;) Actually, I *am* puzzled - the 2.6.0 release of LablGTK has the following in ml_gtkbin.c: ML_3 (gtk_scrolled_window_set_policy, GtkScrolledWindow_val, Policy_type_val, Policy_type_val, Unit) but I *think* that the only interface exposed is the ability to independently set the "h" and "v" policies for a "GtkScrolledWindow". So either I am not getting the intent of the LablGTK interface/code, or this part of LablGTK is as yet unfinished. Robert Roessler robertr@rftp.com http://www.rftp.com