Message-ID: <19575998.1087535511200.JavaMail.www at wwinf0101> From: arnold.guillaumot at wanadoo.fr To: lablgtk at kaba.or.jp Subject: Rsvg and GTree problems Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Date: Fri, 18 Jun 2004 07:11:51 +0200 (CEST) Hello, I am currently playing on win32 and linux with lablgtk2 (snapshot 20040319 from CVS) and I encountered few problems. 1/ Rsvg It is not possible to load rsvg files on win32 platform with the render_from_file function. Changing opening files with open_in_bin instead of open_in should fix it in rsvg.ml 2/ GTree When I was trying to know in which column of the tree view was the cursor, I could not use the method get_cursor of the view class. I think there is an error in the type declaration of this method. If you check the gtk doc a GtkTreeViewColumn should be returned by the function gtk_tree_view_get_cursor (). So the type of the method should be changed like this (tree_path option * tree_view_column obj option) instead of (tree_path option * tree_view_column option). The "obj " is important if you look at the type tree_view_column in gtk.ml (note that the module TreeView in gtkTree.ml should be changed accordingly). Then the last point, I cannot succeed having the method set_visible_func (model_filter class) to work. I have always a segfault. There is a simple test to do changing the tree_model.ml example as follows : replace (in let make_model data) : f#set_visible_column vis_col by : f#set_visible_func (fun m row -> let b = m#get ~row ~column:vis_col in b) I do not know what I am doing wrong here, but I am stuck. Any help would be appreciated. regards