summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkpalette.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkpalette.rb')
-rw-r--r--ext/tk/lib/tkpalette.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/tk/lib/tkpalette.rb b/ext/tk/lib/tkpalette.rb
index a2dc7c87cb..dc2fd47e5c 100644
--- a/ext/tk/lib/tkpalette.rb
+++ b/ext/tk/lib/tkpalette.rb
@@ -8,6 +8,12 @@ module TkPalette
include Tk
extend Tk
+ TkCommandNames = [
+ 'tk_setPalette'.freeze,
+ 'tk_bisque'.freeze,
+ 'tkDarken'.freeze
+ ].freeze
+
def TkPalette.set(*args)
args = args.to_a.flatten if args.kind_of? Hash
tk_call 'tk_setPalette', *args