summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkcanvas.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 08:53:06 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 08:53:06 +0000
commitd34dbd11183932edff06e20a9ec21c0ce450a52f (patch)
tree284336ae2b7a477699fc0edcf58fe69bad723a65 /ext/tk/lib/tkcanvas.rb
parent25cd84e00cba7c64240561eb3b019cf451ed6f71 (diff)
* (bug fix) bug on Tk object ID management
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkcanvas.rb')
-rw-r--r--ext/tk/lib/tkcanvas.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/lib/tkcanvas.rb b/ext/tk/lib/tkcanvas.rb
index 47e925c4fe..a899c9caaf 100644
--- a/ext/tk/lib/tkcanvas.rb
+++ b/ext/tk/lib/tkcanvas.rb
@@ -548,7 +548,7 @@ class TkcTag<TkObject
@path = @id = Tk_CanvasTag_ID.join
CTagID_TBL[@cpath] = {} unless CTagID_TBL[@cpath]
CTagID_TBL[@cpath][@id] = self
- Tk_CanvasTag_ID[1] = Tk_CanvasTag_ID[1].succ
+ Tk_CanvasTag_ID[1].succ!
if mode
tk_call @c.path, "addtag", @id, mode, *args
end
@@ -670,7 +670,7 @@ class TkcGroup<TkcTag
@path = @id = Tk_cGroup_ID.join
CTagID_TBL[@cpath] = {} unless CTagID_TBL[@cpath]
CTagID_TBL[@cpath][@id] = self
- Tk_cGroup_ID[1] = Tk_cGroup_ID[1].succ
+ Tk_cGroup_ID[1].succ!
add(*args) if args != []
end
@@ -829,7 +829,7 @@ class TkImage<TkObject
def initialize(keys=nil)
@path = Tk_Image_ID.join
- Tk_Image_ID[1] = Tk_Image_ID[1].succ
+ Tk_Image_ID[1].succ!
tk_call 'image', 'create', @type, @path, *hash_kv(keys)
Tk_IMGTBL[@path] = self
end