green_shoes 1.1.364 → 1.1.365

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/shoes/app.rb +7 -1
  3. data/lib/shoes/basic.rb +5 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.364
1
+ 1.1.365
data/lib/shoes/app.rb CHANGED
@@ -321,7 +321,13 @@ class Shoes
321
321
  args[:items] ||= []
322
322
  args[:items].each{|item| cb.append_text item.to_s}
323
323
  cb.set_size_request args[:width], args[:height]
324
- cb.active = args[:items].index(args[:choose]) if args[:choose]
324
+ if args[:choose]
325
+ unless args[:entry]
326
+ cb.active = args[:items].index(args[:choose])
327
+ else
328
+ cb.child.text = args[:choose].to_s
329
+ end
330
+ end
325
331
  @canvas.put cb, args[:left], args[:top]
326
332
  cb.show_now
327
333
  args[:real], args[:app] = cb, self
data/lib/shoes/basic.rb CHANGED
@@ -401,7 +401,11 @@ class Shoes
401
401
  end
402
402
 
403
403
  def choose item
404
- @real.active = @items.index item
404
+ unless @entry
405
+ @real.active = @items.index item
406
+ else
407
+ @real.child.text = item.to_s
408
+ end
405
409
  end
406
410
 
407
411
  def change &blk
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.364
4
+ version: 1.1.365
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-25 00:00:00.000000000 Z
12
+ date: 2012-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk2