diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-09-19 13:18:32 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-09-19 13:18:32 +0400 |
commit | a435875d4cf15fb93302acce16aabc1313b8e8ca (patch) | |
tree | a431af7eeeabb43ece6855f25dbbdbf026597d82 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop | |
parent | 49b58bbc296d239ca24bfde4bce8a9fb2a458a62 (diff) |
[Ide] Improve behavior of sliding pad resize
Use NSWindow.SetFrame to move and change the size of the sliding pad
windows all at once. This reduces window bumping a bit. It is not perfect
but good enough for now.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs index a857780c97..3650361c8f 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs @@ -469,5 +469,11 @@ namespace MonoDevelop.Ide.Desktop public virtual void RemoveChildWindow (Gtk.Window parent, Gtk.Window child) { } + + public virtual void PlaceWindow (Gtk.Window window, int x, int y, int width, int height) + { + window.Move (x, y); + window.Resize (width, height); + } } } |