]> git.0d.be Git - empathy.git/blob - python/pyempathy/pyempathy.override
Updated Russian translation
[empathy.git] / python / pyempathy / pyempathy.override
1 %%
2 headers
3 #include <Python.h>
4 #include <pygobject.h>
5 #include "empathy-account-manager.h"
6 #include "empathy-account-settings.h"
7 #include "empathy-call-factory.h"
8 #include "empathy-chatroom.h"
9 #include "empathy-chatroom-manager.h"
10 #include "empathy-connection-managers.h"
11 #include "empathy-connectivity.h"
12 #include "empathy-contact.h"
13 #include "empathy-contact-groups.h"
14 #include "empathy-contact-list.h"
15 #include "empathy-contact-manager.h"
16 #include "empathy-contact-monitor.h"
17 #include "empathy-debug.h"
18 #include "empathy-debugger.h"
19 #include "empathy-dispatcher.h"
20 #include "empathy-enum-types.h"
21 #include "empathy-ft-factory.h"
22 #include "empathy-ft-handler.h"
23 #include "empathy-idle.h"
24 #include "empathy-irc-network.h"
25 #include "empathy-irc-network-manager.h"
26 #include "empathy-irc-server.h"
27 #include "empathy-log-manager.h"
28 #include "empathy-log-store-empathy.h"
29 #include "empathy-message.h"
30 #include "empathy-status-presets.h"
31 #include "empathy-time.h"
32 #include "empathy-tp-call.h"
33 #include "empathy-tp-chat.h"
34 #include "empathy-tp-contact-factory.h"
35 #include "empathy-tp-contact-list.h"
36 #include "empathy-tp-file.h"
37 #include "empathy-tp-roomlist.h"
38 #include "empathy-tube-handler.h"
39 #include "empathy-utils.h"
40
41 void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
42 void empathy_register_classes(PyObject *d);
43
44 %%
45 modulename empathy
46 %%
47 ignore-glob
48         *_get_type
49 %%
50 import gobject.GObject as PyGObject_Type
51 %%
52 override empathy_contact_list_get_members kwargs
53 static PyObject *
54 _wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject *kwargs)
55 {
56
57         PyObject *py_contacts = PyList_New(0);
58         GList *l, *contacts;
59
60         contacts = empathy_contact_list_get_members(EMPATHY_CONTACT_LIST(self->obj));
61
62         for (l = contacts; l; l = l->next) {
63                 EmpathyContact *contact;
64                 contact = l->data;
65                 PyList_Append(py_contacts, pygobject_new((GObject *) contact));
66         }
67
68         return py_contacts;
69
70 }
71 %%