From: Jean-Philippe Bruyère Date: Wed, 21 Mar 2018 23:47:55 +0000 (+0100) Subject: get iface through parenting to prevent queuing out of tree widgets X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=e56fb3c567aad956a19bd9f2757c35c26601740f;p=jp%2Fcrow.git get iface through parenting to prevent queuing out of tree widgets --- diff --git a/CrowIDE/src/Editors/ImlVisualEditor.cs b/CrowIDE/src/Editors/ImlVisualEditor.cs index 11f94c17..3c5ecc67 100644 --- a/CrowIDE/src/Editors/ImlVisualEditor.cs +++ b/CrowIDE/src/Editors/ImlVisualEditor.cs @@ -72,8 +72,8 @@ namespace Crow.Coding } void initIcons () { - icoMove = new SvgPicture (); - icoMove.Load (IFace, "#Crow.Coding.icons.move-arrows.svg"); + icoMove = new SvgPicture ("#Crow.Coding.icons.move-arrows.svg"); + icoMove.Load (IFace); // icoStyle = new SvgPicture (); // icoStyle.Load (IFace, "#Crow.Coding.icons.palette.svg"); } diff --git a/CrowIDE/src/GraphicObjectDesignContainer.cs b/CrowIDE/src/GraphicObjectDesignContainer.cs index 4540898b..e2e1ac8d 100644 --- a/CrowIDE/src/GraphicObjectDesignContainer.cs +++ b/CrowIDE/src/GraphicObjectDesignContainer.cs @@ -53,8 +53,8 @@ namespace Crow.Coding lock (go.IFace.UpdateMutex) { go.IFace.DragImageHeight = dragIconSize; go.IFace.DragImageWidth = dragIconSize; - SvgPicture pic = new SvgPicture (); - pic.Load (go.IFace, IconPath); + SvgPicture pic = new SvgPicture (IconPath); + pic.Load (go.IFace); ImageSurface img = new ImageSurface (Format.Argb32, dragIconSize, dragIconSize); using (Context ctx = new Context (img)) { Rectangle r = new Rectangle (0, 0, dragIconSize, dragIconSize); diff --git a/CrowIDE/ui/editors/IMLEdit.itemp b/CrowIDE/ui/editors/IMLEdit.itemp index 84f391cf..6ea1391f 100644 --- a/CrowIDE/ui/editors/IMLEdit.itemp +++ b/CrowIDE/ui/editors/IMLEdit.itemp @@ -44,9 +44,5 @@ - diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index af624ee5..6883360d 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -194,8 +194,10 @@ namespace Tests this.KeyDown += KeyboardKeyDown1; //testFiles = new string [] { @"Interfaces/Experimental/testDock.crow" }; - testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; + //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; //testFiles = new string [] { @"Interfaces/Divers/0.crow" }; + //testFiles = new string [] { @"Interfaces/Divers/testIMLContainer.crow" }; + testFiles = new string [] { @"Interfaces/TemplatedContainer/testTabView.crow" }; //testFiles = new string [] { @"Interfaces/TemplatedContainer/testTreeView.crow" }; //testFiles = new string [] { @"Interfaces/Divers/colorPicker.crow" }; // testFiles = new string[] { @"Interfaces/TemplatedControl/testItemTemplateTag.crow" }; diff --git a/Tests/Interfaces/Divers/welcome.crow b/Tests/Interfaces/Divers/welcome.crow index b65a4553..8db6dc65 100644 --- a/Tests/Interfaces/Divers/welcome.crow +++ b/Tests/Interfaces/Divers/welcome.crow @@ -4,4 +4,6 @@