From 2b69bff9c66cc22e33bcacbb61a42eb6fc138716 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 7 Apr 2005 18:02:18 +0000 Subject: * ext/tk/sample/tkextlib/treectrl/help.rb: fixed typo. (wrong color) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/sample/tkextlib/treectrl/help.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext/tk/sample') diff --git a/ext/tk/sample/tkextlib/treectrl/help.rb b/ext/tk/sample/tkextlib/treectrl/help.rb index 4acd9c738..be67cc572 100644 --- a/ext/tk/sample/tkextlib/treectrl/help.rb +++ b/ext/tk/sample/tkextlib/treectrl/help.rb @@ -30,7 +30,7 @@ def demoHelpContents(t) 'blue', ['mouseover'] ]) t.element_create('e4', :rect, :showfocus=>true, - :fill=>[@SystemHighligh, ['selected', 'focus']]) + :fill=>[@SystemHighlight, ['selected', 'focus']]) # book s = t.style_create('s1') @@ -122,8 +122,7 @@ def demoHelpContents(t) treeCtrlHelp.bind('Button1-Motion', proc{|w, x, y| if w.selection_get.length == 1 - if (TkPackage.vcompare(Tk::TreeCtrl.package_version, - '1.1') >= 0) + if $Version_1_1_OrLater w.item_toggle(w.selection_get[0]) else # TreeCtrl 1.0 w.toggle(w.selection_get[0]) -- cgit