Esempio n. 1
0
soy_WindowSource* soy__windowsource_new (soyClient* c) {
	soy_WindowSource* self;
#line 31 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	static const GSourceFuncs _source_funcs = { soy__windowsource_real_prepare, soy__windowsource_real_check, soy__windowsource_real_dispatch, soy__windowsource_finalize};
#line 85 "_WindowSource.c"
	soyClient* _tmp0_ = NULL;
	soycontrollersKeyboard* _tmp1_ = NULL;
	soycontrollersPointer* _tmp2_ = NULL;
#line 31 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	g_return_val_if_fail (c != NULL, NULL);
#line 31 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	self = (soy_WindowSource*) g_source_new (&_source_funcs, sizeof (soy_WindowSource));
#line 31 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	soy__windowsource_instance_init (self);
#line 32 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	_tmp0_ = c;
#line 32 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	self->client = _tmp0_;
#line 33 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	_tmp1_ = soy_controllers_keyboard_new ();
#line 33 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	_g_object_unref0 (self->Keyboard);
#line 33 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	self->Keyboard = _tmp1_;
#line 34 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	_tmp2_ = soy_controllers_pointer_new ();
#line 34 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	_g_object_unref0 (self->Pointer);
#line 34 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	self->Pointer = _tmp2_;
#line 31 "/home/jeff/Documents/libraries/libsoy/platforms/x11/_WindowSource.gs"
	return self;
#line 113 "_WindowSource.c"
}
Esempio n. 2
0
static SELF
tp_new (PyTypeObject* type, PyObject* args,
                               PyObject* kwds) {
    SELF self;
    static char* kw[] = {NULL};

    // Parse arguments
    if (!PyArg_ParseTupleAndKeywords(args, kwds, "", kw))
        return NULL;

    // inherit base type
    self = (SELF)
           PyType_GenericNew(type, args, kwds);
    if (!self)
        return NULL;

    // new gobject
    self->g = soy_controllers_pointer_new();

    return self;
}