rabbit 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3723b76fcd146e9a8f9f73d7e97f46428fe33f65
4
- data.tar.gz: ba097128e431769744f7901cb4caaccf646875b5
3
+ metadata.gz: 40188200e1b76637970bc7f5997a0275acfb36ba
4
+ data.tar.gz: 5ef9a545208f532468149ef6c0403755d7ee9804
5
5
  SHA512:
6
- metadata.gz: f6884cf84ed149c02ce44db5081d7e47f5c36141bcffce79b95195912f3e7eb956776491b6653eaf055aae89c3c973320210bf30cd5277478e513cfa15b3cfe0
7
- data.tar.gz: a4ceeac9e14dc04ff6de40adb5c88301375505260f9ae63a61b4806591d5a0a6b3bf495ac26d661463dcf6ca77c86a4f672c3ffb595b7d808f072667ebfbf122
6
+ metadata.gz: 8643a634a80525a6de9aefe2748274743a75ec136266a27f0fa06bfd426d8278463ec611f968feabf645647365ffd9222831b10b8df33ab60cdb5e7c4318fe4a
7
+ data.tar.gz: 0243f5e4a777ff09fd7e7a3e8996312387e3cc3dfe278dfb2fbf5e5eab8bdf2cc28e2e945f1604e8b771a79a10331019ca09727e0555c2f0e0fb4c1a421bd2dd
@@ -3,6 +3,21 @@ layout: en
3
3
  title: News
4
4
  ---
5
5
  {% raw %}
6
+ == 2.1.6: 2015-02-26
7
+
8
+ A bug fix release of 2.1.5.
9
+
10
+ === Fixes
11
+
12
+ ==== rabbit
13
+
14
+ * Fixed a bug that full screen feature doesn't work.
15
+ [GitHub#58] [Reported by Mamoru TASAKA]
16
+
17
+ === Thanks
18
+
19
+ * Mamoru TASAKA
20
+
6
21
  == 2.1.5: 2015-02-25
7
22
 
8
23
  A bug fix release of 2.1.4.
@@ -4,6 +4,21 @@ title: お知らせ
4
4
  apply_data: false
5
5
  ---
6
6
  {% raw %}
7
+ == 2.1.6: 2015-02-26
8
+
9
+ 2.1.5のバグフィックスリリース。
10
+
11
+ === 修正
12
+
13
+ ==== rabbit
14
+
15
+ * フルスクリーン機能が動作しない問題を修正。
16
+ [GitHub#58] [Mamoru TASAKAさんが報告]
17
+
18
+ === 感謝
19
+
20
+ * Mamoru TASAKAさん
21
+
7
22
  == 2.1.5: 2015-02-25
8
23
 
9
24
  2.1.4のバグフィックスリリース。
@@ -11,12 +11,14 @@ module Rabbit
11
11
  def initialize(*args, &block)
12
12
  @drawable = nil
13
13
  @size = nil
14
+ @size_dirty = true
14
15
  @default_size_ratio = nil
15
16
  @size_ratio = nil
16
17
  super
17
18
  end
18
19
 
19
20
  def width
21
+ refresh_size
20
22
  if @size
21
23
  @size.logical_width
22
24
  else
@@ -25,6 +27,7 @@ module Rabbit
25
27
  end
26
28
 
27
29
  def height
30
+ refresh_size
28
31
  if @size
29
32
  @size.logical_height
30
33
  else
@@ -156,6 +159,14 @@ module Rabbit
156
159
  @size = Size.new(w, h, @size_ratio)
157
160
  end
158
161
 
162
+ def refresh_size
163
+ return unless @size_dirty
164
+
165
+ w, h = @drawable.size
166
+ @size = Size.new(w, h, @size.ratio)
167
+ @size_dirty = false
168
+ end
169
+
159
170
  def set_configure_event
160
171
  id = @window.signal_connect("configure_event") do |widget, event|
161
172
  configured(event.x, event.y, event.width, event.height)
@@ -165,7 +176,7 @@ module Rabbit
165
176
  end
166
177
 
167
178
  def configured(x, y, w, h)
168
- set_size(*@drawable.size)
179
+ @size_dirty = true
169
180
  end
170
181
 
171
182
  def queue_draw
@@ -15,5 +15,5 @@
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
17
  module Rabbit
18
- VERSION = "2.1.5"
18
+ VERSION = "2.1.6"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk2