fix an abort when undoing a remove, but create a memory leak for that :/
authorgc <gc>
Sun, 17 Jun 2007 17:04:59 +0000 (17:04 +0000)
committergc <gc>
Sun, 17 Jun 2007 17:04:59 +0000 (17:04 +0000)
lib/booh/GtkAutoTable.rb

index c81c177..6c45cf9 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)