X2, Dropping a dab of "glue" on the shaft sounds easy till you get there
What I do sounds more scary but its not, I notch the shaft with a small set of bolt cutters. You can get the jaws right where they need to be, then a GENTLE controlled, squeeze and shaft is notched just right

. then force the gear back into position. Ive done several like this with no problem. If you screw up with the supper glue the problem would most likely be worse then replacing a gear shaft.
__________________
1985 Euro 240D 5 spd 140K
1979 240D 5 spd, 40K on engine rebuild
1994 Dodge/Cummins, 5 spd, 121K
1964 Allice Chalmers D15 tractor
2014 Kubota L3800 tractor
1964 VW bug
"Lifes too short to drive a boring car"