diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-07 17:03:43 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-07 17:03:43 +0000 |
| commit | e7a78c96dfa82212aa07ce655be54ce13367e5ac (patch) | |
| tree | 63cee7c7756f2528477b0fe60a666ff19ee947d1 /ext/tk/sample/tkextlib/treectrl/help.rb | |
| parent | c8ea30622c2d0a091e1ce2fdbec68c15ecba6317 (diff) | |
| download | ruby-e7a78c96dfa82212aa07ce655be54ce13367e5ac.tar.gz ruby-e7a78c96dfa82212aa07ce655be54ce13367e5ac.tar.xz ruby-e7a78c96dfa82212aa07ce655be54ce13367e5ac.zip | |
* ext/tk/sample/tkextlib/treectrl/*.rb: fixed typo. (wrong itemheight)
* ext/tk/sample/demos-{en,jp}/goldberg.rb: reduced canvas size. [ruby-dev:25992]
(written by Hidetoshi NAGAI)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkextlib/treectrl/help.rb')
| -rw-r--r-- | ext/tk/sample/tkextlib/treectrl/help.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/help.rb b/ext/tk/sample/tkextlib/treectrl/help.rb index 7962a384c..4acd9c738 100644 --- a/ext/tk/sample/tkextlib/treectrl/help.rb +++ b/ext/tk/sample/tkextlib/treectrl/help.rb @@ -2,8 +2,8 @@ # Demo: Help contents # def demoHelpContents(t) - height = t.font.metrics(:linespace) + 2 - hehght = 18 if height < 18 + height = t.font.metrics(:linespace) + height = 18 if height < 18 t.configure(:showroot=>false, :showbuttons=>false, :showlines=>false, :itemheight=>height, :selectmode=>:browse) @@ -140,8 +140,8 @@ end # This is an alternate implementation that does not define a new item state # to change the appearance of the item under the cursor. def demoHelpContents2(t) - height = t.font.metrics(:linespace) + 2 - hehght = 18 if height < 18 + height = t.font.metrics(:linespace) + height = 18 if height < 18 t.configure(:showroot=>false, :showbuttons=>false, :showlines=>false, :itemheight=>height, :selectmode=>:browse) |
