summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEntry.c
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2005-03-24 22:15:16 (GMT)
committerwolfsuit <wolfsuit>2005-03-24 22:15:16 (GMT)
commit4dcf1fa22acbbd54fc28126caf0c56f748358709 (patch)
tree2be98cfd291a4b12acafc18290a96cbd365eddc4 /macosx/tkMacOSXEntry.c
parentcc43759557da35ce47cb2a09e98f59e3ef7c43be (diff)
downloadtk-4dcf1fa22acbbd54fc28126caf0c56f748358709.zip
tk-4dcf1fa22acbbd54fc28126caf0c56f748358709.tar.gz
tk-4dcf1fa22acbbd54fc28126caf0c56f748358709.tar.bz2
Dopey bug, I should only reset the widget width for spinboxes, since I only
change it for them...
Diffstat (limited to 'macosx/tkMacOSXEntry.c')
-rw-r--r--macosx/tkMacOSXEntry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/tkMacOSXEntry.c b/macosx/tkMacOSXEntry.c
index d56245e..afe52a7 100644
--- a/macosx/tkMacOSXEntry.c
+++ b/macosx/tkMacOSXEntry.c
@@ -217,7 +217,9 @@ TkpDrawEntryBorderAndFocus(Entry *entryPtr, Drawable d, int isSpinbox)
}
SetGWorld(saveWorld, saveDevice);
- Tk_Width(tkwin) = oldWidth;
+ if (isSpinbox) {
+ Tk_Width(tkwin) = oldWidth;
+ }
return 1;
}
/*