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

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2014-01-25 16:18:02 +0400
committerLluis Sanchez Gual <lluis@xamarin.com>2014-01-25 16:18:02 +0400
commit46a4b0218d2f720175cf05a2f1aa71c72e0f6310 (patch)
treeff52ec8572473378d12f41529a91f2b16be93b2d /Xwt.Gtk
parentfcc24959fcc401f7c15dee5d9d0f7962cc2805b2 (diff)
[Gtk] Improvements in GtkPlatformBackend
Diffstat (limited to 'Xwt.Gtk')
-rwxr-xr-xXwt.Gtk/Xwt.GtkBackend/GtkEngine.cs6
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs3
2 files changed, 6 insertions, 3 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs b/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
index e94bc934..324c25bc 100755
--- a/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
@@ -132,8 +132,10 @@ namespace Xwt.GtkBackend
Type platformType = asm != null ? asm.GetType (typeName) : null;
- if (platformType != null)
- platformBackend = (GtkPlatformBackend) Activator.CreateInstance (platformType);
+ if (platformType != null) {
+ platformBackend = (GtkPlatformBackend)Activator.CreateInstance (platformType);
+ platformBackend.Initialize (this);
+ }
}
}
diff --git a/Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs
index ed076bae..014c7304 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs
@@ -24,12 +24,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
+using Xwt.Backends;
namespace Xwt.GtkBackend
{
public class GtkPlatformBackend
{
- public virtual void Initialize ()
+ public virtual void Initialize (ToolkitEngineBackend toolit)
{
}
}