gitk: On OSX, bring the gitk window to front
commit76bf6ff93e1766b8813f0cdbe9089080010ba646
authorTair Sabirgaliev <tair.sabirgaliev@bee.kz>
Wed, 24 Apr 2013 09:48:27 +0000 (24 15:48 +0600)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 May 2013 11:29:43 +0000 (13 21:29 +1000)
treee196bb624c7203bea86dff3d497dc6f3709d2007
parentc33cb9083ecad2ec7e23b00722096a94e62b17e1
gitk: On OSX, bring the gitk window to front

On OSX, Tcl/Tk application windows are created behind all
the applications down the stack of windows.  This is very
annoying, because once a gitk window appears, it's the
downmost window and switching to it is pain.

The patch is: if we are on OSX, use osascript to
bring the current Wish process window to front.

Signed-off-by: Tair Sabirgaliev <tair.sabirgaliev@gmail.com>
Thanks-to: Stefan Haller <lists@haller-berlin.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk