Merge pull request #22 from grendello/object_setproperty_public

Make GLib.Object.{Set,Get}Property public
This commit is contained in:
MIkkel Kruse Johnsen 2016-12-19 08:20:25 +01:00 committed by GitHub
commit 487fe38df2

View file

@ -728,7 +728,7 @@ namespace GLib {
[DllImport (Global.GObjectNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern void g_object_get_property (IntPtr obj, IntPtr name, ref GLib.Value val);
protected GLib.Value GetProperty (string name)
public GLib.Value GetProperty (string name)
{
Value val = new Value (this, name);
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
@ -740,7 +740,7 @@ namespace GLib {
[DllImport (Global.GObjectNativeDll, CallingConvention = CallingConvention.Cdecl)]
static extern void g_object_set_property (IntPtr obj, IntPtr name, ref GLib.Value val);
protected void SetProperty (string name, GLib.Value val)
public void SetProperty (string name, GLib.Value val)
{
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
g_object_set_property (Raw, native_name, ref val);