1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
/* -*- Mode: C; c-basic-offset: 4 -*- */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <pygobject.h>
#include <pygtk/pygtk.h>
#include <profiles/gnome-media-profiles.h>
void pymediaprofiles_register_classes(PyObject *d);
extern PyMethodDef pymediaprofiles_functions[];
DL_EXPORT (void)
initmediaprofiles (void)
{
PyObject *m, *d;
gnome_media_profiles_init (gconf_client_get_default ());
m = Py_InitModule("mediaprofiles", pymediaprofiles_functions);
d = PyModule_GetDict(m);
if (PyErr_Occurred())
return;
init_pygtk();
if (PyErr_Occurred())
return;
init_pygobject();
if (PyErr_Occurred())
return;
pymediaprofiles_register_classes(d);
if (PyErr_Occurred())
return;
}
|