summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tkextlib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-07 16:53:56 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-07 16:53:56 +0000
commit231e7ac939453e6e2daac2cc7beaaf946dbd995d (patch)
treef6f39cf1a88acbbcece527fd6839583e005348fc /ext/tk/sample/tkextlib
parent051399c46fac8cc7ed9cb5f3cc6a063ee96ea6f8 (diff)
* 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
Diffstat (limited to 'ext/tk/sample/tkextlib')
-rw-r--r--ext/tk/sample/tkextlib/treectrl/explorer.rb4
-rw-r--r--ext/tk/sample/tkextlib/treectrl/help.rb8
-rw-r--r--ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb8
-rw-r--r--ext/tk/sample/tkextlib/treectrl/random.rb4
4 files changed, 12 insertions, 12 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/explorer.rb b/ext/tk/sample/tkextlib/treectrl/explorer.rb
index 8ee002ef9e..8398cac199 100644
--- a/ext/tk/sample/tkextlib/treectrl/explorer.rb
+++ b/ext/tk/sample/tkextlib/treectrl/explorer.rb
@@ -46,8 +46,8 @@ end
# Demo: explorer files
#
def demoExplorerDetails(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=>:extended,
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)
diff --git a/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb b/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb
index 615c9b2b36..b2f5f45759 100644
--- a/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb
+++ b/ext/tk/sample/tkextlib/treectrl/outlook-newgroup.rb
@@ -4,8 +4,8 @@
def demoOutlookNewsgroup(t)
init_pics('outlook-*')
- height = t.font.metrics(:linespace) + 2
- hehght = 18 if height < 18
+ height = t.font.metrics(:linespace)
+ height = 18 if height < 18
t.configure(:itemheight=>height, :selectmode=>:browse, :showlines=>false,
:showroot=>false, :showrootbutton=>false, :showbuttons=>true)
@@ -206,8 +206,8 @@ end
def demoOutlookNewsgroup2(t)
init_pics('outlook-*')
- height = t.font.metrics(:linespace) + 2
- hehght = 18 if height < 18
+ height = t.font.metrics(:linespace)
+ height = 18 if height < 18
t.configure(:itemheight=>height, :selectmode=>:browse, :showlines=>false,
:showroot=>false, :showrootbutton=>false, :showbuttons=>true)
diff --git a/ext/tk/sample/tkextlib/treectrl/random.rb b/ext/tk/sample/tkextlib/treectrl/random.rb
index d952d476b2..f9a38b0d8b 100644
--- a/ext/tk/sample/tkextlib/treectrl/random.rb
+++ b/ext/tk/sample/tkextlib/treectrl/random.rb
@@ -9,8 +9,8 @@ end
def demoRandom(t)
init_pics('folder-*', 'small-*')
- height = t.font.metrics(:linespace) + 2
- hehght = 18 if height < 18
+ height = t.font.metrics(:linespace)
+ height = 18 if height < 18
t.configure(:itemheight=>height, :selectmode=>:extended,
:showroot=>true, :showrootbutton=>true, :showbuttons=>true,
:showlines=>true, :scrollmargin=>16,