diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-01 21:15:38 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-09-01 21:15:38 (GMT) |
commit | a32f271e085255f83c0122e58c78a5095959fa40 (patch) | |
tree | 99768c6fae353d64d1941e32dc635ef89dd85ea5 /generic/tkCursor.c | |
parent | c9f99ee13f299c7c4b2bfc40e0257f91d5976fab (diff) | |
download | tk-a32f271e085255f83c0122e58c78a5095959fa40.zip tk-a32f271e085255f83c0122e58c78a5095959fa40.tar.gz tk-a32f271e085255f83c0122e58c78a5095959fa40.tar.bz2 |
Fix [0189a9ae39]: Use of Tk_Uid in Tk API. Also change Tk_GetCursorFromData(), so it doesn't need Tk_Uid's any more
Diffstat (limited to 'generic/tkCursor.c')
-rw-r--r-- | generic/tkCursor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkCursor.c b/generic/tkCursor.c index 1bed0c4..f2d3af0 100644 --- a/generic/tkCursor.c +++ b/generic/tkCursor.c @@ -190,7 +190,7 @@ Tk_Cursor Tk_GetCursor( Tcl_Interp *interp, /* Interpreter to use for error reporting. */ Tk_Window tkwin, /* Window in which cursor will be used. */ - Tk_Uid string) /* Description of cursor. See manual entry for + const char *string) /* Description of cursor. See manual entry for * details on legal syntax. */ { TkCursor *cursorPtr = TkcGetCursor(interp, tkwin, string); @@ -321,8 +321,8 @@ Tk_GetCursorFromData( const char *mask, /* Bitmap data for cursor mask. */ int width, int height, /* Dimensions of cursor. */ int xHot, int yHot, /* Location of hot-spot in cursor. */ - Tk_Uid fg, /* Foreground color for cursor. */ - Tk_Uid bg) /* Background color for cursor. */ + const char *fg, /* Foreground color for cursor. */ + const char *bg) /* Background color for cursor. */ { DataKey dataKey; Tcl_HashEntry *dataHashPtr; @@ -341,8 +341,8 @@ Tk_GetCursorFromData( dataKey.height = height; dataKey.xHot = xHot; dataKey.yHot = yHot; - dataKey.fg = fg; - dataKey.bg = bg; + dataKey.fg = Tk_GetUid(fg); + dataKey.bg = Tk_GetUid(bg); dataKey.display = Tk_Display(tkwin); dataHashPtr = Tcl_CreateHashEntry(&dispPtr->cursorDataTable, (char *) &dataKey, &isNew); |