Ejemplo n.º 1
0
static DeepinLunarObject *m_new(PyObject *dummy, PyObject *args) 
{
    DeepinLunarObject *self = NULL;
    
    self = m_init_deepin_lunar_object();
    if (!self)
        return NULL;
    
    self->handle = lunar_calendar_new();
    
    return self;
}
Ejemplo n.º 2
0
static PyObject *m_new(PyObject *dummy, PyObject *args) 
{
    DeepinLunarObject *self = NULL;
    
    self = m_init_deepin_lunar_object();
    if (!self)
        return NULL;
    
    self->handle = lunar_calendar_new();
    
    return pygobject_new(G_OBJECT(self->handle));
}