From 231e7ac939453e6e2daac2cc7beaaf946dbd995d Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 7 Apr 2005 16:53:56 +0000 Subject: * sample/tkextlib/treectrl/*.rb: fixed typo. (wrong itemheight) * sample/demos-{en,jp}/goldberg.rb: reduced canvas size. [ruby-dev:25992] (written by Hidetoshi NAGAI) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/sample/tkextlib/treectrl/help.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/tk/sample/tkextlib/treectrl/help.rb') diff --git a/ext/tk/sample/tkextlib/treectrl/help.rb b/ext/tk/sample/tkextlib/treectrl/help.rb index 7962a384cc..4acd9c7382 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) -- cgit v1.2.3