aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-06-10 23:01:04 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-06-10 23:01:04 +0800
commitcd7afa00e979e4e46d5169e166e39a7f547c74fb (patch)
tree6866cae8cc7c652a519c9cee4fcefcfcb472b8ee
parenta7757f00b3de7c8c1d020c385bef1e315290edb6 (diff)
downloadgsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar.gz
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar.bz2
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar.lz
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar.xz
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.tar.zst
gsoc2013-empathy-cd7afa00e979e4e46d5169e166e39a7f547c74fb.zip
Python binding for empathy_dispatcher_chat_with_contact_id: Take the
account id instead of the McAccount object since there is no binding for libmissioncontrol-client. svn path=/trunk/; revision=1157
-rw-r--r--python/pyempathy/pyempathy.override21
1 files changed, 21 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override
index 169f375ad..333ae5317 100644
--- a/python/pyempathy/pyempathy.override
+++ b/python/pyempathy/pyempathy.override
@@ -61,3 +61,24 @@ _wrap_empathy_contact_list_get_members(PyGObject *self, PyObject *args, PyObject
}
%%
+override empathy_dispatcher_chat_with_contact_id kwargs
+static PyObject *
+_wrap_empathy_dispatcher_chat_with_contact_id(PyObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { "account_id", "contact_id", NULL };
+ char *account_id, *contact_id;
+ McAccount *account;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,"ss:dispatcher_chat_with_contact_id", kwlist, &account_id, &contact_id))
+ return NULL;
+
+ account = mc_account_lookup (account_id);
+ if (account) {
+ empathy_dispatcher_chat_with_contact_id(account, contact_id);
+ g_object_unref (account);
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+%%