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

- old
+ new

@@ -85,13 +85,11 @@ def main_app? ::Shoes::Swt.main_app.equal? self end def flush - if @dsl.top_slot - @real.layout - end + @real.layout if @dsl.top_slot end def scroll_top @real.location.y end @@ -155,12 +153,12 @@ def self.setup_system_colors # just one color for now background_color = Shoes.display.getSystemColor(::Swt::SWT::COLOR_WIDGET_BACKGROUND) ::Shoes::DSL.define_shoes_color(:system_background, background_color.red, - background_color.green, - background_color.blue) + background_color.green, + background_color.blue) end private def initialize_scroll_bar @@ -207,11 +205,11 @@ def initialize_shell @image = ::Swt::Graphics::Image.new(::Swt.display, ICON) @shell = ::Swt::Widgets::Shell.new(::Swt.display, main_window_style) @shell.image = @image - @shell.text = (@dsl.app_title) + @shell.text = @dsl.app_title @shell.background_mode = ::Swt::SWT::INHERIT_DEFAULT @shell.background = @background.real end def initialize_real @@ -243,10 +241,10 @@ end def unregister_app proc do |_event| ::Shoes::Swt.unregister(self) - ::Shoes.unregister(self.dsl.app) + ::Shoes.unregister(dsl.app) end end def attach_real_event_listeners @real.addMouseMoveListener MouseMoveListener.new(self)