|
Revision 10247, 1.2 kB
(checked in by roidelapluie, 4 months ago)
|
- Big headers review
- Remove some licencing problems
- To do: same for images
- See #4200
|
| Line | |
|---|
| 1 | /* -*- Mode: C; c-basic-offset: 4 -*- |
|---|
| 2 | * src/trayiconmodule.c |
|---|
| 3 | * |
|---|
| 4 | * Copyright (C) 2004-2005 Yann Leboulanger <asterix AT lagaule.org> |
|---|
| 5 | * |
|---|
| 6 | * This file is part of Gajim. |
|---|
| 7 | * |
|---|
| 8 | * Gajim is free software; you can redistribute it and/or modify |
|---|
| 9 | * it under the terms of the GNU General Public License as published |
|---|
| 10 | * by the Free Software Foundation; version 3 only. |
|---|
| 11 | * |
|---|
| 12 | * Gajim is distributed in the hope that it will be useful, |
|---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | * GNU General Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License |
|---|
| 18 | * along with Gajim. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | /* include this first, before NO_IMPORT_PYGOBJECT is defined */ |
|---|
| 22 | #include <pygobject.h> |
|---|
| 23 | |
|---|
| 24 | void trayicon_register_classes (PyObject *d); |
|---|
| 25 | |
|---|
| 26 | extern PyMethodDef trayicon_functions[]; |
|---|
| 27 | |
|---|
| 28 | DL_EXPORT(void) |
|---|
| 29 | inittrayicon(void) |
|---|
| 30 | { |
|---|
| 31 | PyObject *m, *d; |
|---|
| 32 | |
|---|
| 33 | init_pygobject (); |
|---|
| 34 | |
|---|
| 35 | m = Py_InitModule ("trayicon", trayicon_functions); |
|---|
| 36 | d = PyModule_GetDict (m); |
|---|
| 37 | |
|---|
| 38 | trayicon_register_classes (d); |
|---|
| 39 | |
|---|
| 40 | if (PyErr_Occurred ()) { |
|---|
| 41 | Py_FatalError ("can't initialise module trayicon :("); |
|---|
| 42 | } |
|---|
| 43 | } |
|---|