aboutsummaryrefslogtreecommitdiffstats
path: root/gnome-2-22/python/pyempathy/pyempathy.override
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-04 22:59:07 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-04 22:59:07 +0800
commitecf81a22ceed387b5c592e31cd8e69a974834562 (patch)
treeef6d3f560d9693c97c93fd7521b83ade979e7fbf /gnome-2-22/python/pyempathy/pyempathy.override
parent62e60bcd7fdded2946976696a7a8b2aaedb80570 (diff)
downloadgsoc2013-empathy-EMPATHY_0_22_1.tar
gsoc2013-empathy-EMPATHY_0_22_1.tar.gz
gsoc2013-empathy-EMPATHY_0_22_1.tar.bz2
gsoc2013-empathy-EMPATHY_0_22_1.tar.lz
gsoc2013-empathy-EMPATHY_0_22_1.tar.xz
gsoc2013-empathy-EMPATHY_0_22_1.tar.zst
gsoc2013-empathy-EMPATHY_0_22_1.zip
Tagged for release 0.22.1.EMPATHY_0_22_1
svn path=/tags/EMPATHY_0_22_1/; revision=876
Diffstat (limited to 'gnome-2-22/python/pyempathy/pyempathy.override')
-rw-r--r--gnome-2-22/python/pyempathy/pyempathy.override64
1 files changed, 64 insertions, 0 deletions
diff --git a/gnome-2-22/python/pyempathy/pyempathy.override b/gnome-2-22/python/pyempathy/pyempathy.override
new file mode 100644
index 000000000..64b65e920
--- /dev/null
+++ b/gnome-2-22/python/pyempathy/pyempathy.override
@@ -0,0 +1,64 @@
+%%
+headers
+#include <Python.h>
+#include <pygobject.h>
+#include "empathy-avatar.h"
+#include "empathy-chandler.h"
+#include "empathy-chatroom.h"
+#include "empathy-chatroom-manager.h"
+#include "empathy-contact.h"
+#include "empathy-contact-factory.h"
+#include "empathy-contact-groups.h"
+#include "empathy-contact-list.h"
+#include "empathy-contact-manager.h"
+#include "empathy-debug.h"
+#include "empathy-enum-types.h"
+#include "empathy-filter.h"
+#include "empathy-idle.h"
+#include "empathy-irc-network.h"
+#include "empathy-irc-network-manager.h"
+#include "empathy-irc-server.h"
+#include "empathy-log-manager.h"
+#include "empathy-message.h"
+#include "empathy-status-presets.h"
+#include "empathy-time.h"
+#include "empathy-tp-call.h"
+#include "empathy-tp-chat.h"
+#include "empathy-tp-chatroom.h"
+#include "empathy-tp-contact-factory.h"
+#include "empathy-tp-contact-list.h"
+#include "empathy-tp-group.h"
+#include "empathy-tp-roomlist.h"
+#include "empathy-utils.h"
+
+void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
+void empathy_register_classes(PyObject *d);
+
+%%
+modulename empathy
+%%
+ignore-glob
+ *_get_type
+%%
+import gobject.GObject as PyGObject_Type
+%%
+override empathy_contact_list_get_members kwargs
+static PyObject *
+_wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+
+ PyObject *py_contacts = PyList_New(0);
+ GList *l, *contacts;
+
+ contacts = empathy_contact_list_get_members(EMPATHY_CONTACT_LIST(self->obj));
+
+ for (l = contacts; l; l = l->next) {
+ EmpathyContact *contact;
+ contact = l->data;
+ PyList_Append(py_contacts, pygobject_new((GObject *) contact));
+ }
+
+ return py_contacts;
+
+}
+%%