aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/treectrl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/treectrl')
-rw-r--r--ext/tk/lib/tkextlib/treectrl/tktreectrl.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
index 136666c4af..c0475f5d5e 100644
--- a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
+++ b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
@@ -531,9 +531,10 @@ class Tk::TreeCtrl
def create_self(keys)
if keys and keys != None
- tk_call_without_enc('treectrl', @path, *hash_kv(keys, true))
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
else
- tk_call_without_enc('treectrl', @path)
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
end
end
private :create_self