OSDN Git Service

* library/managedwin.itb (ManagedWin::_create): When
authorirox <irox>
Wed, 2 Jan 2002 22:08:59 +0000 (22:08 +0000)
committerirox <irox>
Wed, 2 Jan 2002 22:08:59 +0000 (22:08 +0000)
       making a modal window transient, use the source window
       as the master and not ".".

gdb/gdbtk/ChangeLog
gdb/gdbtk/library/managedwin.itb

index b543b91..24a8d93 100644 (file)
        * generic/gdbtk-cmds.c (hex2bin): Replace LITTLE_ENDIAN with
        BFD_ENDIAN_LITTLE.
 
+2001-12-11  Ian Roxborough  <irox@redhat.com>
+
+       * library/managedwin.itb (ManagedWin::_create):  When
+       making a modal window transient, use the source window
+       as the master and not ".".
+
 2001-12-10  Ian Roxborough  <irox@redhat.com>
 
        * library/interface.tcl (set_target_name): Call "pref getd"
index 3272c43..592c004 100644 (file)
@@ -255,7 +255,7 @@ body ManagedWin::_create { class args } {
 
   if {$transient} {
     wm resizable $top 0 0
-    wm transient $top .
+    wm transient $top [winfo toplevel [namespace tail [lindex [ManagedWin::find SrcWin] 0]]]
   } elseif {$::tcl_platform(platform) == "unix"} {
     # Modal dialogs DONT get Icons...
     if {[pref get gdb/use_icons] && ![$newwin isa ModalDialog]} {