Message-ID: <43A72F18.6000309 at rftp.com> Date: Mon, 19 Dec 2005 14:07:20 -0800 From: Robert Roessler Organization: Robert's High-performance Software MIME-Version: 1.0 To: LablGTK List Subject: Re: Pixbuf combo box References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dmitry Bely wrote: > OK, trying to make it running myself, I've faced the following problem: > > # let columns = new GTree.column_list;; > val columns : GTree.column_list = > # let icon_c = columns#add (Gobject.Data.gobject_by_name "GdkPixbuf");; > Exception: Failure "Gobject.Type.from_name: GdkPixbuf". You can not always take arbitrary expressions out of context and expect them to work... :) Here, it seems like you need to actually have created a GdkPixbuf first. In the context of this example, try inserting the following before the above code: let _ = GdkPixbuf.from_file "gnome-fs-regular.png";; > This is just taken from lablgtk-2.6.0/examples/iconview.ml, why it does not > work? (the example itself fails on my Win32 system with > Exception: Sys_error "/: Invalid argument". > - probably it was written with Unix in mind) As for the full example itself, yes, you need to change [at least] the "/" in line 123 to something Windows likes, e.g., "c:/": let data = create_store file_pb folder_pb "c:/" in Beyond that, there are more problems at runtime - some directories get displayed properly, and on others, the program just stops responding... perhaps worse than this, the example program is *really* slow at scanning and displaying directory contents. Since overall, GTK on my Windows XP box does not seem terribly slow, I am hoping that this is just reflecting a weakness in this example. Robert Roessler robertr@rftp.com http://www.rftp.com