summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/palette.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/palette.rb')
-rw-r--r--ext/tk/lib/tk/palette.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/palette.rb b/ext/tk/lib/tk/palette.rb
index f419822e4c..2b6fdf5d90 100644
--- a/ext/tk/lib/tk/palette.rb
+++ b/ext/tk/lib/tk/palette.rb
@@ -35,6 +35,7 @@ module TkPalette
fail "2nd arg need to be Hash"
end
+ tk_call('global', "tkPalette")
colors.each{|key, value|
begin
if win.cget(key) == tk_call('set', "tkPalette(#{key})")