diff --git a/Tk.xs b/Tk.xs index 61070650..106e00d2 100644 --- a/Tk.xs +++ b/Tk.xs @@ -1019,14 +1019,17 @@ CODE: OUTPUT: RETVAL -int +void Tk_Grab(win,global) SV * win int global CODE: { Lang_CmdInfo *info = WindowCommand(win,NULL,3); - RETVAL = Tk_Grab(info->interp,info->tkwin,global); + if (Tk_Grab(info->interp,info->tkwin,global) != TCL_OK) + { + croak("%s",Tcl_GetStringResult(info->interp)); + } } SV *