gitk: Fix transient windows on Win32 and MacOS
commite7d640086e0d3eb332542da287c40262c6eae207
authorAlexander Gavrilov <angavrilov@gmail.com>
Tue, 11 Nov 2008 20:55:42 +0000 (11 23:55 +0300)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Nov 2008 10:40:41 +0000 (13 21:40 +1100)
tree32cd2bbcf8bf08eea628e6e85d27ebe45593d1c5
parentcea07cf8dc9b3677e0c50433c0d72bce83adbdc7
gitk: Fix transient windows on Win32 and MacOS

Transient windows cause problems on these platforms:

- On Win32 the windows appear in the top left corner
  of the screen. In order to fix it, this patch causes
  them to be explicitly centered on their parents by
  an idle handler.

- On MacOS with Tk 8.4 they appear without a title bar.
  Since it is clearly unacceptable, this patch disables
  transient on that platform.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk