Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2014-09-19 13:18:32 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-09-19 13:18:32 +0400
commita435875d4cf15fb93302acce16aabc1313b8e8ca (patch)
treea431af7eeeabb43ece6855f25dbbdbf026597d82 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop
parent49b58bbc296d239ca24bfde4bce8a9fb2a458a62 (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.cs6
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);
+ }
}
}