lib/shoes/swt/slot.rb in shoes-swt-4.0.0.pre6 vs lib/shoes/swt/slot.rb in shoes-swt-4.0.0.pre7

- old
+ new

@@ -26,16 +26,27 @@ # #904 #905 def update_visibility # Only alter contents on a visibility change return if @last_hidden_state == dsl.hidden? - if @last_hidden_state = dsl.hidden? + @last_hidden_state = dsl.hidden? + + if @last_hidden_state dsl.contents.each(&:hide) else dsl.contents.each(&:show) end end + + def redraw_target + @dsl + end + + def remove + app.click_listener.remove_listeners_for(dsl) + end end + class Flow < Slot; end class Stack < Slot; end end end