Date: Sat, 22 Apr 2006 19:12:22 +1000 From: Erik de Castro Lopo To: lablgtk at math.nagoya-u.ac.jp Subject: Re: Setting the cursor in a text_view object Message-Id: <20060422191222.64fba4d7.ocaml-erikd at mega-nerd.com> In-Reply-To: <20060422190527.094d0aa6.erikd at mega-nerd.com> References: <20060421134912.5de86566.ocaml-erikd at mega-nerd.com> <20060422190527.094d0aa6.erikd@mega-nerd.com> Organization: Erik Conspiracy Secret Labs Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 859 Erik de Castro Lopo wrote: > Gdk.Window.set_cursor tview#misc#window (Gdk.Cursor.create `LEFT_PTR) ; I suspect that the above line should actually be something like: Gdk.Window.set_cursor (tview#get_window `TEXT) (Gdk.Cursor.create `LEFT_PTR) ; but this does compile due to the following error: This expression has type Gdk.window option but is here used with type Gdk.window = [ `drawable | `gdkwindow ] Gobject.obj and I'm not sure how to fix this. The OO aspects of Ocaml are still a little unclear to me. Anyone figure out whats going on here? Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ I'd rather not work with people who aren't careful. It's darwinism in software development. Linus Torvalds on the linux-kernel list