rabbit 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/en/news.rd +15 -0
- data/doc/ja/news.rd +15 -0
- data/lib/rabbit/renderer/display/base.rb +12 -1
- data/lib/rabbit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40188200e1b76637970bc7f5997a0275acfb36ba
|
4
|
+
data.tar.gz: 5ef9a545208f532468149ef6c0403755d7ee9804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8643a634a80525a6de9aefe2748274743a75ec136266a27f0fa06bfd426d8278463ec611f968feabf645647365ffd9222831b10b8df33ab60cdb5e7c4318fe4a
|
7
|
+
data.tar.gz: 0243f5e4a777ff09fd7e7a3e8996312387e3cc3dfe278dfb2fbf5e5eab8bdf2cc28e2e945f1604e8b771a79a10331019ca09727e0555c2f0e0fb4c1a421bd2dd
|
data/doc/en/news.rd
CHANGED
@@ -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.
|
data/doc/ja/news.rd
CHANGED
@@ -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
|
-
|
179
|
+
@size_dirty = true
|
169
180
|
end
|
170
181
|
|
171
182
|
def queue_draw
|
data/lib/rabbit/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk2
|