From 30f69beebaf526dd03dc494d85c4dba85bbe8368 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 3 Nov 2014 05:36:29 +0000 Subject: [PATCH] tkutil.c: inherit Data * ext/tk/tkutil/tkutil.c: use Data as super class, not to inherit useless methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/tkutil/tkutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c index e9310244c8..3880e731f2 100644 --- a/ext/tk/tkutil/tkutil.c +++ b/ext/tk/tkutil/tkutil.c @@ -1754,10 +1754,10 @@ Init_tkutil(void) ID_call = rb_intern("call"); /* --------------------- */ - cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cObject); + cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cData); rb_define_singleton_method(cCB_SUBST, "inspect", cbsubst_inspect, 0); - cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cObject); + cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cData); rb_define_singleton_method(cSUBST_INFO, "inspect", substinfo_inspect, 0); ID_SUBST_INFO = rb_intern("SUBST_INFO");