/* -- THIS FILE IS GENERATED - DO NOT EDIT *//* -*- Mode: C; c-basic-offset: 4 -*- */ #include #line 6 "filechooser.override" #include "pygobject.h" #include #include #include #define XFCE_TYPE_FILE_CHOOSER_ACTION GUI_TYPE_FILE_CHOOSER_ACTION #line 16 "filechooser.c" /* ---------- types from other modules ---------- */ static PyTypeObject *_PyGObject_Type; #define PyGObject_Type (*_PyGObject_Type) /* ---------- forward type declarations ---------- */ #line 26 "filechooser.c" /* ----------- functions ----------- */ PyMethodDef pyfilechooser_functions[] = { { NULL, NULL, 0 } }; /* ----------- enums and flags ----------- */ void pyfilechooser_add_constants(PyObject *module, const gchar *strip_prefix) { pyg_enum_add(module, "FileChooserAction", strip_prefix, XFCE_TYPE_FILE_CHOOSER_ACTION); if (PyErr_Occurred()) PyErr_Print(); } /* initialise stuff extension classes */ void pyfilechooser_register_classes(PyObject *d) { PyObject *module; if ((module = PyImport_ImportModule("gobject")) != NULL) { PyObject *moddict = PyModule_GetDict(module); _PyGObject_Type = (PyTypeObject *)PyDict_GetItemString(moddict, "GObject"); if (_PyGObject_Type == NULL) { PyErr_SetString(PyExc_ImportError, "cannot import name GObject from gobject"); return; } } else { PyErr_SetString(PyExc_ImportError, "could not import gobject"); return; } #line 70 "filechooser.c" }