summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-06 02:10:15 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-06 02:10:15 +0000
commita5862908415a83271a4f9b3c9f78babcf4e2df39 (patch)
tree0af3cf2b271ab5d11ab8e90284652e366ee32fe2 /ext
parentb3f1ce859c1ae61bca885ab84646009f88e8065e (diff)
* ext/tk/lib/tk/menu.rb(TkOptionMenubutton#insert): call correct method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk/menu.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/menu.rb b/ext/tk/lib/tk/menu.rb
index 2b4c8bcd9b..f13a7c5a68 100644
--- a/ext/tk/lib/tk/menu.rb
+++ b/ext/tk/lib/tk/menu.rb
@@ -445,7 +445,7 @@ class TkOptionMenubutton<TkMenubutton
@menu.invoke(index)
end
def insert(index, value)
- @menu.add(index, 'radiobutton', 'variable'=>@variable,
+ @menu.insert(index, 'radiobutton', 'variable'=>@variable,
'label'=>value, 'value'=>value)
self
end