diff options
author | Keith Seitz <keiths@redhat.com> | 2001-07-05 23:24:10 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2001-07-05 23:24:10 +0000 |
commit | 1907348e71d44e4efa14aa34a4f9a036832b20c0 (patch) | |
tree | 0d2bcfd9a9603f049cb7ce763d21a703217dd670 | |
parent | 96a3b93b6a89a770e614c88cb434297b278fd8ff (diff) | |
download | gdb-1907348e71d44e4efa14aa34a4f9a036832b20c0.tar.gz |
* library/managedwin.itb (_create): Don't pass "-over"
to center_window unless we really are asked to put the
window over another!
-rw-r--r-- | gdb/gdbtk/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbtk/library/managedwin.itb | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog index 40d6e4b8311..bb8aee9e45b 100644 --- a/gdb/gdbtk/ChangeLog +++ b/gdb/gdbtk/ChangeLog @@ -1,3 +1,9 @@ +2001-07-05 Keith Seitz <keiths@redhat.com> + + * library/managedwin.itb (_create): Don't pass "-over" + to center_window unless we really are asked to put the + window over another! + 2001-06-18 Keith Seitz <keiths@redhat.com> * library/managedwin.itb (_create): When creating a diff --git a/gdb/gdbtk/library/managedwin.itb b/gdb/gdbtk/library/managedwin.itb index 5f900640949..2a808ebd7e6 100644 --- a/gdb/gdbtk/library/managedwin.itb +++ b/gdb/gdbtk/library/managedwin.itb @@ -244,11 +244,13 @@ body ManagedWin::_create { class args } { wm minsize $top 20 20 update idletasks - if {$over != "" || $center} { + if {$over != ""} { # center new window center_window $top -over [winfo toplevel [namespace tail $over]] + } elseif {$center} { + center_window $top } - + if {$transient} { wm resizable $top 0 0 wm transient $top . |