Author: Ole Streicher <debian@liska.ath.cx>
Description: Fix tk 8.5 crash with "-type tearoff".
 It needs to be fixed in tk. However, here this gives the opportunity to
 correct the setting for the (invisible) main window. Also, the main window
 font is reset to non-bold.
Bug: http://sourceforge.net/tracker/?func=detail&aid=3561016&group_id=12997&atid=112997
--- a/ftools/guis/fv/class/fvWinKeeper.tcl
+++ b/ftools/guis/fv/class/fvWinKeeper.tcl
@@ -34,12 +34,17 @@
    global g_titleFont
    global xpaFlag
    
-   wm withdraw $itk_interior
+   wm geometry $itk_interior 1x1+0+0
+   wm overrideredirect $itk_interior 1
+   wm transient $itk_interior
+   tkwait visibility $itk_interior
 
    if { ! $isMac } {
       itk_component add mainMenu {
          menu $itk_interior.menu -tearoff false -type tearoff -bd 0
       }
+      wm attributes $itk_interior.menu -type normal
+      wm resizable $itk_interior.menu 0 0
       wm title $itk_interior.menu "fv"
       wm geometry $itk_interior.menu +0+0
 
--- a/ftools/guis/fv/class/fvApp.tcl
+++ b/ftools/guis/fv/class/fvApp.tcl
@@ -412,8 +412,8 @@
        font create g_titleFont -family system    -size -12
        font create g_notebookTitleFont -family system -size -14
     } else {
-       font create g_titleFont -family Helvetica -size -12 -weight bold
-       font create g_notebookTitleFont -family Helvetica -size -14 -weight bold
+       font create g_titleFont -family Helvetica -size -12
+       font create g_notebookTitleFont -family Helvetica -size -14
     }
 
     font create g_entryFont -family Courier -size -12
