diff options
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/sample/demos-en/floor.rb | 4 | ||||
-rw-r--r-- | ext/tk/sample/demos-en/floor2.rb | 4 | ||||
-rw-r--r-- | ext/tk/sample/demos-jp/floor.rb | 4 | ||||
-rw-r--r-- | ext/tk/sample/demos-jp/floor2.rb | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/sample/demos-en/floor.rb b/ext/tk/sample/demos-en/floor.rb index 9c95770d43..53adcf96b6 100644 --- a/ext/tk/sample/demos-en/floor.rb +++ b/ext/tk/sample/demos-en/floor.rb @@ -1667,8 +1667,8 @@ else pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1) - v.command(proc{|*args| f.yview(*args)}) - h.command(proc{|*args| f.xview(*args)}) + v.command(proc{|*args| $floor_canvas.yview(*args)}) + h.command(proc{|*args| $floor_canvas.xview(*args)}) } end diff --git a/ext/tk/sample/demos-en/floor2.rb b/ext/tk/sample/demos-en/floor2.rb index 513e02aaaa..efaf9e250d 100644 --- a/ext/tk/sample/demos-en/floor2.rb +++ b/ext/tk/sample/demos-en/floor2.rb @@ -1667,8 +1667,8 @@ else pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1) - v.command(proc{|*args| f.yview(*args)}) - h.command(proc{|*args| f.xview(*args)}) + v.command(proc{|*args| $floor2_canvas.yview(*args)}) + h.command(proc{|*args| $floor2_canvas.xview(*args)}) } end diff --git a/ext/tk/sample/demos-jp/floor.rb b/ext/tk/sample/demos-jp/floor.rb index d258bb6486..b029580bd6 100644 --- a/ext/tk/sample/demos-jp/floor.rb +++ b/ext/tk/sample/demos-jp/floor.rb @@ -1664,8 +1664,8 @@ else pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1) - v.command(proc{|*args| f.yview(*args)}) - h.command(proc{|*args| f.xview(*args)}) + v.command(proc{|*args| $floor_canvas.yview(*args)}) + h.command(proc{|*args| $floor_canvas.xview(*args)}) } end diff --git a/ext/tk/sample/demos-jp/floor2.rb b/ext/tk/sample/demos-jp/floor2.rb index 9812240dce..a20b31d45c 100644 --- a/ext/tk/sample/demos-jp/floor2.rb +++ b/ext/tk/sample/demos-jp/floor2.rb @@ -1664,8 +1664,8 @@ else pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1) - v.command(proc{|*args| f.yview(*args)}) - h.command(proc{|*args| f.xview(*args)}) + v.command(proc{|*args| $floor2_canvas.yview(*args)}) + h.command(proc{|*args| $floor2_canvas.xview(*args)}) } end |