diff options
Diffstat (limited to 'generic/ttk/ttkTreeview.c')
-rw-r--r-- | generic/ttk/ttkTreeview.c | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 11de5e0..6bca9e6 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -1426,7 +1426,7 @@ TreeviewConfigure(Tcl_Interp *interp, void *recordPtr, int mask) */ static int ConfigureItem( Tcl_Interp *interp, Treeview *tv, TreeItem *item, - int objc, Tcl_Obj *const objv[]) + Tcl_Size objc, Tcl_Obj *const objv[]) { Tk_SavedOptions savedOptions; int mask; @@ -1518,7 +1518,7 @@ error: */ static int ConfigureColumn( Tcl_Interp *interp, Treeview *tv, TreeColumn *column, - int objc, Tcl_Obj *const objv[]) + Tcl_Size objc, Tcl_Obj *const objv[]) { Tk_SavedOptions savedOptions; int mask; @@ -1564,7 +1564,7 @@ error: */ static int ConfigureHeading( Tcl_Interp *interp, Treeview *tv, TreeColumn *column, - int objc, Tcl_Obj *const objv[]) + Tcl_Size objc, Tcl_Obj *const objv[]) { Tk_SavedOptions savedOptions; int mask; @@ -2752,7 +2752,10 @@ static int TreeviewBBoxCommand( * row itemid */ static int TreeviewHorribleIdentify( - Tcl_Interp *interp, Tcl_Size objc, Tcl_Obj *const objv[], Treeview *tv) + Tcl_Interp *interp, + TCL_UNUSED(Tcl_Size), /* objc */ + Tcl_Obj *const objv[], + Treeview *tv) { const char *what = "nothing", *detail = NULL; TreeItem *item = 0; @@ -2760,7 +2763,6 @@ static int TreeviewHorribleIdentify( Tcl_Size dColumnNumber; char dcolbuf[32]; int x, y, x1; - (void)objc; /* ASSERT: objc == 4 */ @@ -3639,7 +3641,9 @@ static int TreeviewSelectionCommand( */ static int SelObjChangeElement( Treeview *tv, Tcl_Obj *listPtr, Tcl_Obj *elemPtr, - int add, TCL_UNUSED(int) /*remove*/, int toggle) + int add, + TCL_UNUSED(int) /*remove*/, + int toggle) { Tcl_Size i, nElements; int anyChange = 0; @@ -4455,14 +4459,16 @@ static const Ttk_ElementOptionSpec TreeitemIndicatorOptions[] = { }; static void TreeitemIndicatorSize( - void *dummy, void *elementRecord, Tk_Window tkwin, - int *widthPtr, int *heightPtr, Ttk_Padding *paddingPtr) + TCL_UNUSED(void *), /* clientData */ + void *elementRecord, + Tk_Window tkwin, + int *widthPtr, + int *heightPtr, + TCL_UNUSED(Ttk_Padding *)) { TreeitemIndicator *indicator = (TreeitemIndicator *)elementRecord; Ttk_Padding margins; int size = 0; - (void)dummy; - (void)paddingPtr; Ttk_GetPaddingFromObj(NULL, tkwin, indicator->marginsObj, &margins); Tk_GetPixelsFromObj(NULL, tkwin, indicator->sizeObj, &size); @@ -4472,8 +4478,12 @@ static void TreeitemIndicatorSize( } static void TreeitemIndicatorDraw( - void *dummy, void *elementRecord, Tk_Window tkwin, - Drawable d, Ttk_Box b, Ttk_State state) + TCL_UNUSED(void *), /* clientData */ + void *elementRecord, + Tk_Window tkwin, + Drawable d, + Ttk_Box b, + Ttk_State state) { TreeitemIndicator *indicator = (TreeitemIndicator *)elementRecord; ArrowDirection direction = @@ -4481,7 +4491,6 @@ static void TreeitemIndicatorDraw( Ttk_Padding margins; XColor *borderColor = Tk_GetColorFromObj(tkwin, indicator->colorObj); XGCValues gcvalues; GC gc; unsigned mask; - (void)dummy; if (state & TTK_STATE_LEAF) /* don't draw anything */ return; @@ -4525,14 +4534,16 @@ static const Ttk_ElementOptionSpec RowElementOptions[] = { }; static void RowElementDraw( - void *dummy, void *elementRecord, Tk_Window tkwin, - Drawable d, Ttk_Box b, Ttk_State state) + TCL_UNUSED(void *), /* clientData */ + void *elementRecord, + Tk_Window tkwin, + Drawable d, + Ttk_Box b, + TCL_UNUSED(Ttk_State)) { RowElement *row = (RowElement *)elementRecord; XColor *color = Tk_GetColorFromObj(tkwin, row->backgroundObj); GC gc = Tk_GCForColor(color, d); - (void)dummy; - (void)state; XFillRectangle(Tk_Display(tkwin), d, gc, b.x, b.y, b.width, b.height); |