summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-08-27 15:44:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-08-27 15:44:39 (GMT)
commit1a9ede3c59cf0b1cf135cf26f32f84d6b7fa28e9 (patch)
tree713efe408a6630cc3ed65176b6a10d431624f01a
parent2f5c17efbcde76c70e226b03b9be5770f955be9b (diff)
parente4475aaf250fc32a38cd2fd80e89d4d3addefae6 (diff)
downloadtk-1a9ede3c59cf0b1cf135cf26f32f84d6b7fa28e9.zip
tk-1a9ede3c59cf0b1cf135cf26f32f84d6b7fa28e9.tar.gz
tk-1a9ede3c59cf0b1cf135cf26f32f84d6b7fa28e9.tar.bz2
-rw-r--r--macosx/tkMacOSXButton.c1
-rw-r--r--macosx/tkMacOSXMenubutton.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index dd4cca7..9858f88 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -186,6 +186,7 @@ TkpDestroyButton(
TkButton *butPtr)
{
MacButton *macButtonPtr = (MacButton *) butPtr;
+ [macButtonPtr->button setTag:(NSInteger)-1];
TkMacOSXMakeCollectableAndRelease(macButtonPtr->button);
TkMacOSXMakeCollectableAndRelease(macButtonPtr->selectImage);
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index d6e635a..df42763 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -116,6 +116,7 @@ TkpDestroyMenuButton(
TkMenuButton *mbPtr)
{
MacMenuButton *macButtonPtr = (MacMenuButton *) mbPtr;
+ [macButtonPtr->button setTag:(NSInteger)-1];
TkMacOSXMakeCollectableAndRelease(macButtonPtr->button);
}