root/branches/gajim_0.9/src/trayiconmodule.c

Revision 1063, 0.5 kB (checked in by asterix, 4 years ago)

reorder files

Line 
1/* -*- Mode: C; c-basic-offset: 4 -*- */
2
3/* include this first, before NO_IMPORT_PYGOBJECT is defined */
4#include <pygobject.h>
5
6void trayicon_register_classes (PyObject *d);
7
8extern PyMethodDef trayicon_functions[];
9
10DL_EXPORT(void)
11inittrayicon(void)
12{
13    PyObject *m, *d;
14       
15    init_pygobject ();
16
17    m = Py_InitModule ("trayicon", trayicon_functions);
18    d = PyModule_GetDict (m);
19       
20    trayicon_register_classes (d);
21
22    if (PyErr_Occurred ()) {
23        Py_FatalError ("can't initialise module trayicon :(");
24    }
25}
Note: See TracBrowser for help on using the browser.