diff --git a/Source/Libs/GLibSharp/InitiallyUnowned.cs b/Source/Libs/GLibSharp/InitiallyUnowned.cs index af0c43c34..156f867b7 100644 --- a/Source/Libs/GLibSharp/InitiallyUnowned.cs +++ b/Source/Libs/GLibSharp/InitiallyUnowned.cs @@ -27,9 +27,14 @@ namespace GLib { protected InitiallyUnowned (IntPtr raw) : base (raw) {} + delegate IntPtr d_g_initially_unowned_get_type (); + static d_g_initially_unowned_get_type g_initially_unowned_get_type = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.GObject), "g_initially_unowned_get_type")); + public new static GLib.GType GType { get { - return GType.Object; + IntPtr raw_ret = g_initially_unowned_get_type(); + GLib.GType ret = new GLib.GType(raw_ret); + return ret; } } diff --git a/Source/Libs/GLibSharp/Value.cs b/Source/Libs/GLibSharp/Value.cs index 6c7271bae..8b86c6bee 100644 --- a/Source/Libs/GLibSharp/Value.cs +++ b/Source/Libs/GLibSharp/Value.cs @@ -711,8 +711,8 @@ namespace GLib { delegate float d_g_value_get_float(ref Value val); static d_g_value_get_float g_value_get_float = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.GObject), "g_value_get_float")); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - delegate IntPtr d_g_value_get_gtype(ref Value val); - static d_g_value_get_type g_value_get_gtype = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.GObject), "g_value_get_gtype")); + delegate GLib.GType d_g_value_get_gtype(ref Value val); + static d_g_value_get_gtype g_value_get_gtype = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.GObject), "g_value_get_gtype")); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] delegate int d_g_value_get_int(ref Value val); static d_g_value_get_int g_value_get_int = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.GObject), "g_value_get_int")); diff --git a/Source/Libs/GtkSourceSharp/Buffer.cs b/Source/Libs/GtkSourceSharp/Buffer.cs index daf62c0b5..4f46b6ccd 100644 --- a/Source/Libs/GtkSourceSharp/Buffer.cs +++ b/Source/Libs/GtkSourceSharp/Buffer.cs @@ -5,7 +5,6 @@ { public Buffer() : base(IntPtr.Zero) { - owned = true; Raw = gtk_source_buffer_new(IntPtr.Zero); } }