From 21d4e24e8d0624f5f6ec5be6acd45c6c02d30e44 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 18 May 2009 16:19:17 +0100 Subject: upgrade Python bindings --- python/pyempathy/pyempathy.defs | 23 +++++++++++++++++++++++ python/pyempathygtk/pyempathygtk.defs | 13 ++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index 2f522eb07..f438882d9 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -599,6 +599,17 @@ ) ) +(define-method new_call_with_streams + (of-object "EmpathyCallFactory") + (c-name "empathy_call_factory_new_call_with_streams") + (return-type "none") + (parameters + '("EmpathyContact*" "contact") + '("gboolean" "initial_audio") + '("gboolean" "initial_video") + ) +) + (define-method claim_channel (of-object "EmpathyCallFactory") (c-name "empathy_call_factory_claim_channel") @@ -625,6 +636,16 @@ ) ) +(define-function call_handler_new_for_contact_with_streams + (c-name "empathy_call_handler_new_for_contact_with_streams") + (return-type "EmpathyCallHandler*") + (parameters + '("EmpathyContact*" "contact") + '("gboolean" "audio") + '("gboolean" "video") + ) +) + (define-function call_handler_new_for_channel (c-name "empathy_call_handler_new_for_channel") (return-type "EmpathyCallHandler*") @@ -2069,6 +2090,8 @@ (return-type "none") (parameters '("EmpathyContact*" "contact") + '("gboolean" "audio") + '("gboolean" "video") ) ) diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 816261d39..b0ce54ae3 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -181,7 +181,8 @@ '("is-active" "EMPATHY_CONTACT_LIST_STORE_COL_IS_ACTIVE") '("is-online" "EMPATHY_CONTACT_LIST_STORE_COL_IS_ONLINE") '("is-separator" "EMPATHY_CONTACT_LIST_STORE_COL_IS_SEPARATOR") - '("can-voip" "EMPATHY_CONTACT_LIST_STORE_COL_CAN_VOIP") + '("can-audio-call" "EMPATHY_CONTACT_LIST_STORE_COL_CAN_AUDIO_CALL") + '("can-video-call" "EMPATHY_CONTACT_LIST_STORE_COL_CAN_VIDEO_CALL") '("count" "EMPATHY_CONTACT_LIST_STORE_COL_COUNT") ) ) @@ -1188,9 +1189,15 @@ (return-type "GtkWidget*") ) -(define-method call_menu_item_new +(define-method audio_call_menu_item_new (of-object "EmpathyContact") - (c-name "empathy_contact_call_menu_item_new") + (c-name "empathy_contact_audio_call_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method video_call_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_video_call_menu_item_new") (return-type "GtkWidget*") ) -- cgit v1.2.3