1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/tkextlib/treectrl/tktreectrl.rb (selection_clear): fixed typo.

* sample/tkextlib/treectrl/random.rb: node deselection now works.

* sample/tkextlib/treectrl/demo.rb: fixed typo. (popup menu on column header)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2005-04-08 03:24:15 +00:00
parent e82a3d23c7
commit 10b0ee1865
4 changed files with 16 additions and 7 deletions

View file

@ -1,3 +1,11 @@
2005-04-08 ocean <ocean@ruby-lang.org>
* lib/tkextlib/treectrl/tktreectrl.rb (selection_clear): fixed typo.
* sample/tkextlib/treectrl/random.rb: node deselection now works.
* sample/tkextlib/treectrl/demo.rb: fixed typo. (popup menu on column header)
2005-04-08 ocean <ocean@ruby-lang.org>
* sample/tkextlib/treectrl/help.rb: fixed typo. (wrong color)

View file

@ -1302,7 +1302,7 @@ class Tk::TreeCtrl
end
def selection_clear(*args) # first, last
tk_send('selection', 'clear' *args)
tk_send('selection', 'clear', *args)
self
end

View file

@ -496,7 +496,7 @@ class TkTreeCtrl_demo
@popup[:arrowside].value = w.column_cget(col, :arrowside)
@popup[:arrowgravity].value = w.column_cget(col, :arrowgravity)
@popup[:expand].value = w.column_cget(col, :expand)
@popup[:sqeeeze].value = w.column_cget(col, :squeeze)
@popup[:squeeze].value = w.column_cget(col, :squeeze)
@popup[:justify].value = w.column_cget(col, :justify)
@mHeader[w].popup(rootx, rooty)
return

View file

@ -100,7 +100,6 @@ def demoRandom(t)
clicks = Tk::Clock.clicks
(0...(random_N())).each{|i|
item_i = items[i]
item_j = nil
numChildren = t.item_numchildren(item_i)
if numChildren > 0
if $Version_1_1_OrLater
@ -179,15 +178,17 @@ def randomButton1(t, x, y)
id = t.identify(x, y)
puts id.inspect
@Priv['buttonMode'] = ''
if id.empty?
# Click outside any item
# Click outside any item
if id.empty?
t.selection_clear
# Click in header
elsif id[0] == 'header'
# Click in header
Tk::TreeCtrl::BindCallback.buttonPress1(t, x, y)
# Click in item
else
# Click in item
where, item, arg1, arg2, arg3, arg4 = id
case arg1
when 'button'