summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-02 16:07:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-02 16:07:23 (GMT)
commit06420ba2fed328cf5559b51d715c8554ff00c69c (patch)
tree4352e4ab25a6a1a63247f7c413a465b5d41f2e9a /macosx/tkMacOSXScrlbr.c
parent34fbe0438a0f9b87108fb087f3d21c3d01399a58 (diff)
parent9c29a905fa4d7ec4c5aa8528475f312dc3d39dab (diff)
downloadtk-06420ba2fed328cf5559b51d715c8554ff00c69c.zip
tk-06420ba2fed328cf5559b51d715c8554ff00c69c.tar.gz
tk-06420ba2fed328cf5559b51d715c8554ff00c69c.tar.bz2
Merge 8.6
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index 5cd1f56..6ed53ee 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -246,7 +246,7 @@ void
TkpDisplayScrollbar(
ClientData clientData) /* Information about window. */
{
- TkScrollbar *scrollPtr = clientData;
+ TkScrollbar *scrollPtr = (TkScrollbar *)clientData;
MacScrollbar *msPtr = (MacScrollbar *) scrollPtr;
Tk_Window tkwin = scrollPtr->tkwin;
TkWindow *winPtr = (TkWindow *) tkwin;
@@ -456,10 +456,10 @@ TkpDestroyScrollbar(
{
MacScrollbar *macScrollPtr = (MacScrollbar *) scrollPtr;
- if (macScrollPtr->troughGC != None) {
+ if (macScrollPtr->troughGC != NULL) {
Tk_FreeGC(scrollPtr->display, macScrollPtr->troughGC);
}
- if (macScrollPtr->copyGC != None) {
+ if (macScrollPtr->copyGC != NULL) {
Tk_FreeGC(scrollPtr->display, macScrollPtr->copyGC);
}
}
@@ -770,7 +770,7 @@ ScrollbarEventProc(
ClientData clientData, /* Information about window. */
XEvent *eventPtr) /* Information about event. */
{
- TkScrollbar *scrollPtr = clientData;
+ TkScrollbar *scrollPtr = (TkScrollbar *)clientData;
switch (eventPtr->type) {
case UnmapNotify:
@@ -784,10 +784,10 @@ ScrollbarEventProc(
case ButtonRelease:
case EnterNotify:
case LeaveNotify:
- ScrollbarEvent(clientData, eventPtr);
+ ScrollbarEvent(scrollPtr, eventPtr);
break;
default:
- TkScrollbarEventProc(clientData, eventPtr);
+ TkScrollbarEventProc(scrollPtr, eventPtr);
}
}