glimmer-dsl-swt 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/glimmer/swt/table_proxy.rb +4 -1
- data/lib/glimmer/swt/widget_proxy.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d85c2647eb91ad5e3890357021cca11cfa1e3978490079e7de7d44ae8bacb63
|
4
|
+
data.tar.gz: f5c74f67484cf9fd54c6be65c41b95f787632715d048b4186980d4b40abfe78f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7357435f443a4bc764bfcc9d4a216272f3ff3f007e69488b0da74a6decc1b4f5252bbd31982134d7358e76b4c86547429a1952a2c1c2fb15a59127a22bdb1970
|
7
|
+
data.tar.gz: 365b10848e8851b92373783666c701fff642742990218fc0652cd5d5f42ddaaad2e672062b25699500f275f83cac49bf4fb1301511b8f3b6b14cc26d8c87a921
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 0.5.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 0.5.2 (Desktop GUI)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
3
3
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer-dsl-swt/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer-dsl-swt?branch=master)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -61,6 +61,7 @@ module Glimmer
|
|
61
61
|
combo: {
|
62
62
|
widget_value_property: :text,
|
63
63
|
editor_gui: lambda do |args, model, property, table_proxy|
|
64
|
+
first_time = true
|
64
65
|
table_proxy.table_editor.minimumHeight = 25
|
65
66
|
table_editor_widget_proxy = combo(*args) {
|
66
67
|
items model.send("#{property}_options")
|
@@ -77,7 +78,9 @@ module Glimmer
|
|
77
78
|
end
|
78
79
|
}
|
79
80
|
on_widget_selected {
|
80
|
-
|
81
|
+
if !OS.windows? || !first_time || first_time && model.send(property) != table_editor_widget_proxy.swt_widget.text
|
82
|
+
table_proxy.finish_edit!
|
83
|
+
end
|
81
84
|
}
|
82
85
|
}
|
83
86
|
table_editor_widget_proxy
|
@@ -22,7 +22,7 @@ module Glimmer
|
|
22
22
|
|
23
23
|
DEFAULT_STYLES = {
|
24
24
|
"text" => [:border],
|
25
|
-
"table" => [:virtual, :border],
|
25
|
+
"table" => [:virtual, :border, :full_selection],
|
26
26
|
"tree" => [:virtual, :border, :h_scroll, :v_scroll],
|
27
27
|
"spinner" => [:border],
|
28
28
|
"styled_text" => [:border],
|