diff options
author | Cody Russell <cody@jhu.edu> | 2015-08-04 18:59:46 +0300 |
---|---|---|
committer | Cody Russell <cody@jhu.edu> | 2015-08-04 19:04:28 +0300 |
commit | dee5cd5320586803b7b2fedb6b32cd77a5633153 (patch) | |
tree | 7fb054fb2c8a36dd02ac34f2c0bc29e03ca1cfae /main/src/core/MonoDevelop.Ide/MonoDevelop.Components | |
parent | 233626c69dc0e5c1f668e5ac182d88005a96fd9a (diff) |
[Ide] Set DropDownBoxListWindow to be transient for its toplevel window
When this is created and shown from a floating editor window it was never
actually visible to the user because it was stacked behind the floating
window.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=31310
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PathBar.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PathBar.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PathBar.cs index 8ff221923e..a13f021b63 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PathBar.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/PathBar.cs @@ -479,7 +479,13 @@ namespace MonoDevelop.Components if (menuWidget is Menu) { ((Menu)menuWidget).Popup (null, null, PositionFunc, 0, Gtk.Global.CurrentEventTime); } else { + var window = menuWidget as Gtk.Window; PositionWidget (menuWidget); + + if (window != null) { + window.TransientFor = this.Toplevel as Gtk.Window; + } + menuWidget.ShowAll (); } } |