public string GetStringProperty(string name) { OldGLib.Value val = new OldGLib.Value (); val.Init (OldGLib.GType.String); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_get_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); return val.Val as string; }
public IntPtr GetProperty(string name) { OldGLib.Value val = new OldGLib.Value (); val.Init (OldGLib.GType.Object); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup (name); g_object_get_property (raw, native_name, ref val); OldGLib.Marshaller.Free (native_name); return ((OldGLib.Object)(val.Val)).Handle; }
public string GetStringProperty(string name) { OldGLib.Value val = new OldGLib.Value(); val.Init(OldGLib.GType.String); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_get_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); return(val.Val as string); }
public IntPtr GetProperty(string name) { OldGLib.Value val = new OldGLib.Value(); val.Init(OldGLib.GType.Object); IntPtr native_name = OldGLib.Marshaller.StringToPtrGStrdup(name); g_object_get_property(raw, native_name, ref val); OldGLib.Marshaller.Free(native_name); return(((OldGLib.Object)(val.Val)).Handle); }