From: Joachim G. <rub...@an...> - 2008-03-03 15:26:57
|
After more weirdness about this error I "fixed" it def connect_sort_update unless @sort_update_handler == nil @liststore.signal_handler_disconnect(@sort_update_handler) end @sort_update_handler = @liststore.signal_connect("sort-column-changed"){ |me| col_id, ordering = me.sort_column_id puts "sort column changed: #{col_id} #{ordering}" connect_sort_update } end On every signal call, it disconnects the signal and reconnects it. This way it doesn't seem to be collected by the GC. Although this is very ugly, it solves my problem. -- Posted via http://www.ruby-forum.com/. |