Date: Thu, 30 Mar 2006 18:34:04 +1000 From: Erik de Castro Lopo To: lablgtk at math.nagoya-u.ac.jp Subject: Re: class view objects and connecting adjustments to them Message-Id: <20060330183404.24ed1333.ocaml-erikd at mega-nerd.com> In-Reply-To: <20060328.184932.126764261.garrigue at math.nagoya-u.ac.jp> References: <20060324222122.621a4d5e.ocaml-erikd at mega-nerd.com> <20060328.184932.126764261.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: 1326 Jacques Garrigue wrote: > Not this one: it is inteded to react to the addition of an adjustment. > If you want just to connect adjustment, this is simpler than that, but > we would need to know what you want to connect it to. Well I'm trying to connect it to a GText.view object in lablgtk2. > As a first step, you could try "grep adjustment examples/*.ml" > There are quite a number of examples there. Thanks Jacques. Since I was just using the Debian/Ubuntu packages, I wasn't aware of these examples. However, they are indeed on my system. When the liblablgtk2-ocaml-dev packages are installed, these examples end up in the directory: /usr/share/doc/liblablgtk2-ocaml-dev/examples/ I notice that the program editor.ml uses and older deprecated widget and does : editor#text#set_vadjustment scrollbar#adjustment Unfortunately, the newer non-deprecated GText.view widget does not seem to have a set_vadjustment method. All of the examples embed a GText.view window inside a scrolled window which doesn't work for my application. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ Question #26118: Being friends with Christians and gays http://islamqa.com/index.php?ln=eng&ds=qa&lv=browse&QR=26118&dgn=4