summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/image.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/image.rb')
-rw-r--r--ext/tk/lib/tk/image.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tk/lib/tk/image.rb b/ext/tk/lib/tk/image.rb
index 7fd61eff5d..6eb7b98d6c 100644
--- a/ext/tk/lib/tk/image.rb
+++ b/ext/tk/lib/tk/image.rb
@@ -70,7 +70,9 @@ class TkPhotoImage<TkImage
keys.delete(opt)
end
}
- hash_kv(keys).flatten
+ keys.collect{|k,v|
+ ['-' << k, v]
+ }.flatten
end
private :_photo_hash_kv