gtk2_window_settings 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gtk2_window_settings.gemspec +1 -1
- data/lib/gtk2_window_settings.rb +8 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/gtk2_window_settings.rb
CHANGED
@@ -48,7 +48,14 @@ class Gtk2_window_settings
|
|
48
48
|
end
|
49
49
|
|
50
50
|
#Resize and move window to saved size (if saved).
|
51
|
-
|
51
|
+
if @data[:width].to_i > 0 and @data[:height].to_i > 0
|
52
|
+
#Use timeout to avoid any other size-code.
|
53
|
+
Gtk.timeout_add(25) do
|
54
|
+
@window.resize(@data[:width].to_i, @data[:height].to_i)
|
55
|
+
false
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
52
59
|
@window.move(@data[:pos_x].to_i, @data[:pos_y].to_i) if @data[:pos_registered].to_i == 1
|
53
60
|
|
54
61
|
#Initialize events for the window.
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gtk2_window_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kasper Johansen
|
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
hash:
|
116
|
+
hash: 197759462218864649
|
117
117
|
segments:
|
118
118
|
- 0
|
119
119
|
version: "0"
|