fix an abort when undoing a remove, but create a memory leak for that :/
[booh] / lib / booh / GtkAutoTable.rb
index c81c17701bac66d0e7428e0feb31bf132a2736d3..6c45cf983445b9833a79e8492e52031389b4c221 100644 (file)
@@ -290,7 +290,9 @@ class Gtk::AutoTable < Gtk::EventBox
         @containers = []
         if @table
             remove(@table)
-            @table.destroy
+            @table.hide     #- should be #destroy, but that triggers an Abort in booh, and I cannot really understand why and fix 
+                            #- this is a memory leak, so ideally it should be either fixed in ruby-gtk2 0.16.0, or at least checked if
+                            #- it's not fixed from a side effect of another fix in the future
         end
         add(@table = Gtk::Table.new(0, 0, true))
         @table.set_row_spacings(@row_spacings)