From 354c8e8cf72d68ab7ff459397c5bdafb600678c1 Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 19 Mar 2021 19:31:57 +0100 Subject: [PATCH] Ups, GetRawOwnedObject already returns an IntPtr --- .../content/GtkSharp.Application.CSharp/MainWindow.cs | 2 +- .../content/GtkSharp.Dialog.CSharp/Gtk_Dialog.cs | 2 +- .../content/GtkSharp.Widget.CSharp/Gtk_Widget.cs | 2 +- .../content/GtkSharp.Window.CSharp/Gtk_Window.cs | 2 +- .../content/GtkSharp.Application.FSharp/MainWindow.fs | 2 +- .../content/GtkSharp.Dialog.FSharp/Gtk_Dialog.fs | 2 +- .../content/GtkSharp.Widget.FSharp/Gtk_Widget.fs | 2 +- .../content/GtkSharp.Window.FSharp/Gtk_Window.fs | 2 +- .../content/GtkSharp.Application.VBNet/MainWindow.vb | 2 +- .../content/GtkSharp.Dialog.VBNet/Gtk_Dialog.vb | 2 +- .../content/GtkSharp.Widget.VBNet/Gtk_Widget.vb | 2 +- .../content/GtkSharp.Window.VBNet/Gtk_Window.vb | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) 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 067abcef0..a6fc08a26 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.GetRawOwnedObject("MainWindow").Handle) + private MainWindow(Builder builder) : base(builder.GetRawOwnedObject("MainWindow")) { 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 c3922d697..5f7d60f10 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.GetRawOwnedObject("Gtk_Dialog").Handle) + private Gtk_Dialog(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Dialog")) { 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 e559f3dde..88c911502 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.GetRawOwnedObject("Gtk_Widget").Handle) + private Gtk_Widget(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Widget")) { 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 77511283a..2b863d03c 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.GetRawOwnedObject("Gtk_Window").Handle) + private Gtk_Window(Builder builder) : base(builder.GetRawOwnedObject("Gtk_Window")) { 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 02a48fa33..03ffbc5d7 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.GetRawOwnedObject("MainWindow").Handle) + inherit Window(builder.GetRawOwnedObject("MainWindow")) 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 d2b2021bb..7e52fb76e 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.GetRawOwnedObject("Gtk_Dialog").Handle) + inherit Dialog(builder.GetRawOwnedObject("Gtk_Dialog")) 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 90c5fd43d..2812ea947 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.GetRawOwnedObject("Gtk_Widget").Handle) + inherit Box(builder.GetRawOwnedObject("Gtk_Widget")) 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 34f3f2c9a..a4f3fc885 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.GetRawOwnedObject("Gtk_Window").Handle) + inherit Window(builder.GetRawOwnedObject("Gtk_Window")) 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 8a75a9621..5a1f6fa05 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.GetRawOwnedObject("MainWindow").Handle) + MyBase.New(builder.GetRawOwnedObject("MainWindow")) 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 1d78213d5..e4b15f60b 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.GetRawOwnedObject("Gtk_Dialog").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Dialog")) 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 7cf254110..359a413e7 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.GetRawOwnedObject("Gtk_Widget").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Widget")) 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 c5cdc5466..2e0b365f4 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.GetRawOwnedObject("Gtk_Window").Handle) + MyBase.New (builder.GetRawOwnedObject("Gtk_Window")) builder.Autoconnect (Me) End Sub