summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/tcllib/ctext.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/tcllib/ctext.rb')
-rw-r--r--ext/tk/lib/tkextlib/tcllib/ctext.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/tcllib/ctext.rb b/ext/tk/lib/tkextlib/tcllib/ctext.rb
index 89bfeff0f..342b268c7 100644
--- a/ext/tk/lib/tkextlib/tcllib/ctext.rb
+++ b/ext/tk/lib/tkextlib/tcllib/ctext.rb
@@ -34,9 +34,10 @@ class Tk::Tcllib::CText
def create_self(keys)
if keys and keys != None
- tk_call_without_enc('ctext', @path, *hash_kv(keys, true))
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
else
- tk_call_without_enc('ctext', @path)
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
end
end
private :create_self