diff --git a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs index 31a98b31c..067abcef0 100644 --- a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs +++ b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs @@ -13,7 +13,7 @@ namespace GtkNamespace public MainWindow() : this(new Builder("MainWindow.glade")) { } - private MainWindow(Builder builder) : base(builder.GetObject("MainWindow").Handle) + private MainWindow(Builder builder) : base(builder.GetRawOwnedObject("MainWindow").Handle) { builder.Autoconnect(this); diff --git a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Dialog.CSharp/Gtk_Dialog.cs b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Dialog.CSharp/Gtk_Dialog.cs index e4133f658..c3922d697 100644 --- a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Dialog.CSharp/Gtk_Dialog.cs +++ b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Dialog.CSharp/Gtk_Dialog.cs @@ -8,7 +8,7 @@ namespace GtkNamespace { public Gtk_Dialog() : this(new Builder("Gtk_Dialog.glade")) { } - private Gtk_Dialog(Builder builder) : base(builder.GetObject("Gtk_Dialog").Handle) + private Gtk_Dialog(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Dialog").Handle) { builder.Autoconnect(this); DefaultResponse = ResponseType.Cancel; diff --git a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Widget.CSharp/Gtk_Widget.cs b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Widget.CSharp/Gtk_Widget.cs index ca4edd24e..e559f3dde 100644 --- a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Widget.CSharp/Gtk_Widget.cs +++ b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Widget.CSharp/Gtk_Widget.cs @@ -8,7 +8,7 @@ namespace GtkNamespace { public Gtk_Widget() : this(new Builder("Gtk_Widget.glade")) { } - private Gtk_Widget(Builder builder) : base(builder.GetObject("Gtk_Widget").Handle) + private Gtk_Widget(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Widget").Handle) { builder.Autoconnect(this); } diff --git a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Window.CSharp/Gtk_Window.cs b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Window.CSharp/Gtk_Window.cs index e4b68797f..77511283a 100644 --- a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Window.CSharp/Gtk_Window.cs +++ b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Window.CSharp/Gtk_Window.cs @@ -8,7 +8,7 @@ namespace GtkNamespace { public Gtk_Window() : this(new Builder("Gtk_Window.glade")) { } - private Gtk_Window(Builder builder) : base(builder.GetObject("Gtk_Window").Handle) + private Gtk_Window(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Window").Handle) { builder.Autoconnect(this); } diff --git a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Application.FSharp/MainWindow.fs b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Application.FSharp/MainWindow.fs index 316e2f848..02a48fa33 100644 --- a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Application.FSharp/MainWindow.fs +++ b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Application.FSharp/MainWindow.fs @@ -3,7 +3,7 @@ namespace GtkNamespace open Gtk type MainWindow (builder : Builder) as this = - inherit Window(builder.GetObject("MainWindow").Handle) + inherit Window(builder.GetRawOwnedObject("MainWindow").Handle) let mutable _label1 : Label = null let mutable _button1 : Button = null diff --git a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Dialog.FSharp/Gtk_Dialog.fs b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Dialog.FSharp/Gtk_Dialog.fs index 369db5478..d2b2021bb 100644 --- a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Dialog.FSharp/Gtk_Dialog.fs +++ b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Dialog.FSharp/Gtk_Dialog.fs @@ -3,7 +3,7 @@ namespace GtkNamespace open Gtk type Gtk_Dialog (builder : Builder) as this = - inherit Dialog(builder.GetObject("Gtk_Dialog").Handle) + inherit Dialog(builder.GetRawOwnedObject("Gtk_Dialog").Handle) do this.DefaultResponse <- ResponseType.Cancel; this.Response.Add(fun _ -> diff --git a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Widget.FSharp/Gtk_Widget.fs b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Widget.FSharp/Gtk_Widget.fs index 7d4d3d4ce..90c5fd43d 100644 --- a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Widget.FSharp/Gtk_Widget.fs +++ b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Widget.FSharp/Gtk_Widget.fs @@ -3,6 +3,6 @@ namespace GtkNamespace open Gtk type Gtk_Widget (builder : Builder) = - inherit Box(builder.GetObject("Gtk_Widget").Handle) + inherit Box(builder.GetRawOwnedObject("Gtk_Widget").Handle) new() = new Gtk_Widget(new Builder("Gtk_Widget.glade")) diff --git a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Window.FSharp/Gtk_Window.fs b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Window.FSharp/Gtk_Window.fs index ab3fb159a..34f3f2c9a 100644 --- a/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Window.FSharp/Gtk_Window.fs +++ b/Source/Templates/GtkSharp.Template.FSharp/content/GtkSharp.Window.FSharp/Gtk_Window.fs @@ -3,6 +3,6 @@ namespace GtkNamespace open Gtk type Gtk_Window (builder : Builder) = - inherit Window(builder.GetObject("Gtk_Window").Handle) + inherit Window(builder.GetRawOwnedObject("Gtk_Window").Handle) new() = new Gtk_Window(new Builder("Gtk_Window.glade")) diff --git a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Application.VBNet/MainWindow.vb b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Application.VBNet/MainWindow.vb index f47a06021..8a75a9621 100644 --- a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Application.VBNet/MainWindow.vb +++ b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Application.VBNet/MainWindow.vb @@ -11,7 +11,7 @@ Namespace GtkNamespace Private _button1 As Button Public Sub New (builder as Builder) - MyBase.New(builder.GetObject("MainWindow").Handle) + MyBase.New(builder.GetRawOwnedObject("MainWindow").Handle) builder.Autoconnect (Me) diff --git a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Dialog.VBNet/Gtk_Dialog.vb b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Dialog.VBNet/Gtk_Dialog.vb index 05640a7fc..1d78213d5 100644 --- a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Dialog.VBNet/Gtk_Dialog.vb +++ b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Dialog.VBNet/Gtk_Dialog.vb @@ -7,7 +7,7 @@ Namespace GtkNamespace Inherits Dialog Public Sub New (builder as Builder) - MyBase.New (builder.GetObject("Gtk_Dialog").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Dialog").Handle) builder.Autoconnect (Me) DefaultResponse = ResponseType.Cancel diff --git a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Widget.VBNet/Gtk_Widget.vb b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Widget.VBNet/Gtk_Widget.vb index 49c8ba38c..7cf254110 100644 --- a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Widget.VBNet/Gtk_Widget.vb +++ b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Widget.VBNet/Gtk_Widget.vb @@ -7,7 +7,7 @@ Namespace GtkNamespace Inherits Box Public Sub New (builder as Builder) - MyBase.New (builder.GetObject("Gtk_Widget").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Widget").Handle) builder.Autoconnect (Me) End Sub diff --git a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Window.VBNet/Gtk_Window.vb b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Window.VBNet/Gtk_Window.vb index aaa3a2d5d..c5cdc5466 100644 --- a/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Window.VBNet/Gtk_Window.vb +++ b/Source/Templates/GtkSharp.Template.VBNet/content/GtkSharp.Window.VBNet/Gtk_Window.vb @@ -7,7 +7,7 @@ Namespace GtkNamespace Inherits Window Public Sub New (builder as Builder) - MyBase.New (builder.GetObject("Gtk_Window").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Window").Handle) builder.Autoconnect (Me) End Sub