lib/shoes/swt/swt_button.rb in shoes-swt-4.0.0.pre4 vs lib/shoes/swt/swt_button.rb in shoes-swt-4.0.0.pre5

- old
+ new

@@ -4,17 +4,17 @@ include Common::Remove include Common::Visibility include Common::UpdatePosition include ::Shoes::BackendDimensionsDelegations - attr_reader :parent, :real, :dsl + attr_reader :app, :real, :dsl - def initialize(dsl, parent, type) + def initialize(dsl, app, type) @dsl = dsl - @parent = parent + @app = app @type = type - @real = ::Swt::Widgets::Button.new(@parent.real, @type) + @real = ::Swt::Widgets::Button.new(@app.real, @type) yield(@real) if block_given? set_size end