fix History shortcut

the HistoryGui's window is now stored in a variable named 'parent', not
'w'

Signed-off-by:  <st9fan@gmail.com>