diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-01-25 16:18:02 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-01-25 16:18:02 +0400 |
commit | 46a4b0218d2f720175cf05a2f1aa71c72e0f6310 (patch) | |
tree | ff52ec8572473378d12f41529a91f2b16be93b2d /Xwt.Gtk | |
parent | fcc24959fcc401f7c15dee5d9d0f7962cc2805b2 (diff) |
[Gtk] Improvements in GtkPlatformBackend
Diffstat (limited to 'Xwt.Gtk')
-rwxr-xr-x | Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs | 6 | ||||
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/GtkPlatformBackend.cs | 3 |
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) { } } |