lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-swt-4.18.0.2 vs lib/glimmer/swt/shell_proxy.rb in glimmer-dsl-swt-4.18.1.0
- old
+ new
@@ -62,13 +62,14 @@
@swt_widget = Shell.new(*args)
@swt_widget.set_data('proxy', self)
@swt_widget.setLayout(FillLayout.new)
@swt_widget.setMinimumSize(WIDTH_MIN, HEIGHT_MIN)
# TODO make this an option not the default
+ shell_swt_display = Glimmer::SWT::DisplayProxy.instance.swt_display
on_swt_show do
Thread.new do
sleep(0.25)
- async_exec do
+ shell_swt_display.async_exec do
@swt_widget.setActive unless @swt_widget.isDisposed
end
end
end
end