[empathy] upgrade Python bindings



commit 21d4e24e8d0624f5f6ec5be6acd45c6c02d30e44
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon May 18 16:19:17 2009 +0100

    upgrade Python bindings
---
 python/pyempathy/pyempathy.defs       |   23 +++++++++++++++++++++++
 python/pyempathygtk/pyempathygtk.defs |   13 ++++++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 2f522eb..f438882 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 816261d..b0ce54a 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*")
 )
 



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