public Value(IntPtr obj, string prop_name, Opaque val) { type = IntPtr.Zero; pad1 = new Padding (); pad2 = new Padding (); InitForProperty (GObject.Object.GetObject (obj), prop_name); g_value_set_boxed (ref this, val.Handle); }
public Value(Opaque val, string type_name) { type = IntPtr.Zero; pad1 = new Padding (); pad2 = new Padding (); g_value_init (ref this, GType.FromName (type_name).Val); g_value_set_boxed (ref this, val.Handle); }