green_shoes 1.1.354 → 1.1.357

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.354
1
+ 1.1.357
data/lib/ext/bloops.rb CHANGED
@@ -1 +1,6 @@
1
- require_relative 'bloops/bloops'
1
+ begin
2
+ require 'bloops'
3
+ rescue LoadError
4
+ require_relative 'bloops/bloops'
5
+ end
6
+
data/lib/shoes/app.rb CHANGED
@@ -690,7 +690,7 @@ class Shoes
690
690
  end
691
691
 
692
692
  def background pat, args={}
693
- pat = eval(pat) if pat.is_a?(String) and !((File.extname(pat).downcase) =~ /\.[png|jpg|gif|PNG|JPG|GIF]/)
693
+ pat = eval(pat) if pat.is_a?(String) and pat[0] != '#' and !((File.extname(pat).downcase) =~ /\.[png|jpg|gif|PNG|JPG|GIF]/)
694
694
  args[:pattern] = pat
695
695
  args = basic_attributes args
696
696
 
@@ -163,7 +163,7 @@ class Shoes
163
163
  x, y = slot.left.to_i, slot.top.to_i
164
164
  max = Struct.new(:top, :height).new
165
165
  max.top, max.height = y, 0
166
- slot_height = 0
166
+ slot_height, slot_top = 0, y
167
167
 
168
168
  slot.contents.each do |ele|
169
169
  next if ele.is_a?(Basic) && ele.cleared && !ele.is_a?(Pattern)
@@ -179,7 +179,7 @@ class Shoes
179
179
  max, flag = ele.positioning x, y, max
180
180
  x, y = ele.left + ele.width, ele.top + ele.height
181
181
  unless max == tmp
182
- slot_height = flag && !slot_height.zero? ? y : slot_height + max.height
182
+ slot_height = max.top + max.height - slot_top
183
183
  end
184
184
  end
185
185
  slot_height
data/static/manual-en.txt CHANGED
@@ -358,6 +358,7 @@ can have scrollbars.
358
358
  100.times do |i|
359
359
  para "Paragraph No. #{i}"
360
360
  end
361
+ flush
361
362
  end
362
363
  end
363
364
  }}}
@@ -366,8 +367,8 @@ These nested windows require more memory. They tax the application a bit more.
366
367
  So if you're experiencing some slowness with hundreds of fixed-height slots,
367
368
  try a different approach.
368
369
 
369
- '''Note:''' Fixed height magic (the slot becomes a nested window) is not implemented
370
- in Green Shoes so far. Scrollbar will appear automatically but at main window only.
370
+ '''Note:''' Fixed height magic (the slot becomes a nested window) is implemented
371
+ in Green Shoes as a trial so far. Need to add `flush` method.
371
372
 
372
373
  {{{
373
374
  Shoes.app do
@@ -2324,7 +2325,7 @@ Creates a Title text block. Green Shoes styles these elements to 34 pixels high
2324
2325
 
2325
2326
  === video(path or url) » Shoes::Video ===
2326
2327
 
2327
- Play some audio files.
2328
+ Embeds a movie or plays an audio.
2328
2329
 
2329
2330
  === window(styles) { ... } » Shoes::App ===
2330
2331
 
data/static/manual-ja.txt CHANGED
@@ -347,6 +347,7 @@ Green Shoesでは、これらの種類のブロックは同じ働きをします
347
347
  100.times do |i|
348
348
  para "Paragraph No. #{i}"
349
349
  end
350
+ flush
350
351
  end
351
352
  end
352
353
  }}}
@@ -355,7 +356,7 @@ Green Shoesでは、これらの種類のブロックは同じ働きをします
355
356
  もしあなたが、固定された高さのたくさんのスロットで遅さを経験しているなら、違うアプローチを試してください。
356
357
 
357
358
  '''注意:''' 固定された高さのマジック(スロットを入れ子のウィンドウにする)は今のところGreen Shoesでは
358
- サポートしていません。スクロールバーは自動的に現れますがメインウィンドウに対してのみです。
359
+ お試し版です。`flush` メソッドを追記する必要があります。
359
360
 
360
361
  {{{
361
362
  Shoes.app do
@@ -2253,7 +2254,7 @@ Sup("superscript"の省略形)テキストの一部を作成します。
2253
2254
 
2254
2255
  === video(path or url) » Shoes::Video ===
2255
2256
 
2256
- 動画を埋め込みます。
2257
+ 動画を埋め込みます。音声を再生します。
2257
2258
 
2258
2259
  === window(styles) { ... } » Shoes::App ===
2259
2260
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: green_shoes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.354
4
+ version: 1.1.357
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-15 00:00:00.000000000 Z
12
+ date: 2012-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk2
16
- requirement: &17359116 !ruby/object:Gem::Requirement
16
+ requirement: &17013048 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17359116
24
+ version_requirements: *17013048
25
25
  description: Green Shoes is one of colorful Shoes, written in pure Ruby with Ruby/GTK2.
26
26
  email: ashbbb@gmail.com
27
27
  executables:
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  version: '0'
332
332
  requirements: []
333
333
  rubyforge_project:
334
- rubygems_version: 1.8.11
334
+ rubygems_version: 1.8.16
335
335
  signing_key:
336
336
  specification_version: 3
337
337
  summary: Green Shoes