summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-05 07:35:41 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-05 07:35:41 +0000
commite64169e8afb5f11299f9f77c82eef269ea3eb67e (patch)
tree16fe50605850246eac6978041e4470c3b678681c /ext/tk/lib/tkextlib/tile/tcheckbutton.rb
parent26947723b42e8a09a33cf1d70caa30dd203e9943 (diff)
* ext/tk/lib/multi-tk.rb: freeze callback-entry objects
* ext/tk/lib/tkextlib/tile.rb: support tile-0.6 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/tile/tcheckbutton.rb')
-rw-r--r--ext/tk/lib/tkextlib/tile/tcheckbutton.rb15
1 files changed, 5 insertions, 10 deletions
diff --git a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
index 4ba77d95d..aff560b69 100644
--- a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
@@ -16,16 +16,11 @@ end
class Tk::Tile::TCheckButton < TkCheckButton
include Tk::Tile::TileWidget
- TkCommandNames = ['tcheckbutton'.freeze].freeze
+ if Tk::Tile::USE_TTK_NAMESPACE
+ TkCommandNames = ['::ttk::checkbutton'.freeze].freeze
+ else
+ TkCommandNames = ['::tcheckbutton'.freeze].freeze
+ end
WidgetClassName = 'TCheckbutton'.freeze
WidgetClassNames[WidgetClassName] = self
-
- def create_self(keys)
- if keys and keys != None
- tk_call_without_enc('tcheckbutton', @path, *hash_kv(keys, true))
- else
- tk_call_without_enc('tcheckbutton', @path)
- end
- end
- private :create_self
end