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 CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gtk2_window_settings"
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
@@ -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
- @window.resize(@data[:width].to_i, @data[:height].to_i) if @data[:width].to_i > 0 and @data[:height].to_i > 0
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.3
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: 961482250520693283
116
+ hash: 197759462218864649
117
117
  segments:
118
118
  - 0
119
119
  version: "0"