empathy r1157 - trunk/python/pyempathy



Author: xclaesse
Date: Tue Jun 10 15:01:04 2008
New Revision: 1157
URL: http://svn.gnome.org/viewvc/empathy?rev=1157&view=rev

Log:
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.


Modified:
   trunk/python/pyempathy/pyempathy.override

Modified: trunk/python/pyempathy/pyempathy.override
==============================================================================
--- trunk/python/pyempathy/pyempathy.override	(original)
+++ trunk/python/pyempathy/pyempathy.override	Tue Jun 10 15:01:04 2008
@@ -61,3 +61,24 @@
 
 }
 %%
+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;
+}
+%%



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]