From: <Jo...@bo...> - 2005-08-19 15:24:50
|
Hi I have 2 problems to report. The first one is that the procs sent to Gtk::Treeveiw::Selection.set_select_function seems to be overwritten in some cases if there are multiple treeviews. I cannot exactly point out when, but it seems the storage of the procs is bogus in some way. There is a workaround for this problem that goes like this: my_sel_func = proc {|bla bla bla| ... } my_treeview.selection.set_select_function(&proc) It seems that when the procs are stored as local variables first, they are not overwritten. The other problem arises in an app that has a notebook and some treeviews on different pages. I click aruond a bit in one of them, the contents change as expected. Then I switch to another page and try to select an item in the other view with attached selection function. I then get a "[BUG] Segmentation fault" The views are created from a glade file, but the rest (model, columns, renderer and selection callback proc) is created in the script. I'm not very experienced with ruby / mixing, but I guess since I get a segfault it is in the c code the problem is. The first thing may be then how to connect gdb to my app so that I can see where the segfault comes from. Could someone please help me doing that? My system specs is: Redhat Enterprise 3.5 Gtk 2.2 ruby stable cvs snapshot gnome2-ruby 0.13 I cannot attach the source, since I'm developing this for a big company and they wont let the source outside their system. /Johan Bondeson |