lib/shoes/swt/button.rb in shoes-swt-4.0.0.pre4 vs lib/shoes/swt/button.rb in shoes-swt-4.0.0.pre5
- old
+ new
@@ -1,16 +1,14 @@
class Shoes
module Swt
class Button < SwtButton
- include Common::Child
-
# Create a button
#
# @param [Shoes::Button] dsl The Shoes DSL button this represents
# @param [::Swt::Widgets::Composite] parent The parent element of this button
# @param [Proc] blk The block of code to call when this button is activated
- def initialize(dsl, parent)
- super(dsl, parent, ::Swt::SWT::PUSH) do |button|
+ def initialize(dsl, app)
+ super(dsl, app, ::Swt::SWT::PUSH) do |button|
button.set_text @dsl.text
end
end
end
end