empathy r2596 - in trunk/python: pyempathy pyempathygtk



Author: xclaesse
Date: Fri Mar  6 11:52:17 2009
New Revision: 2596
URL: http://svn.gnome.org/viewvc/empathy?rev=2596&view=rev

Log:
Updated python bindings.

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/python/pyempathy/pyempathy.defs
   trunk/python/pyempathygtk/pyempathygtk.defs

Modified: trunk/python/pyempathy/pyempathy.defs
==============================================================================
--- trunk/python/pyempathy/pyempathy.defs	(original)
+++ trunk/python/pyempathy/pyempathy.defs	Fri Mar  6 11:52:17 2009
@@ -1577,11 +1577,12 @@
 (define-method add_message
   (of-object "EmpathyLogManager")
   (c-name "empathy_log_manager_add_message")
-  (return-type "none")
+  (return-type "gboolean")
   (parameters
     '("const-gchar*" "chat_id")
     '("gboolean" "chatroom")
     '("EmpathyMessage*" "message")
+    '("GError**" "error")
   )
 )
 
@@ -1607,15 +1608,6 @@
   )
 )
 
-(define-method get_messages_for_file
-  (of-object "EmpathyLogManager")
-  (c-name "empathy_log_manager_get_messages_for_file")
-  (return-type "GList*")
-  (parameters
-    '("const-gchar*" "filename")
-  )
-)
-
 (define-method get_messages_for_date
   (of-object "EmpathyLogManager")
   (c-name "empathy_log_manager_get_messages_for_date")
@@ -1639,15 +1631,6 @@
   )
 )
 
-(define-method get_messages_for_file
-  (of-object "EmpathyLogManager")
-  (c-name "empathy_log_manager_get_messages_for_file")
-  (return-type "GList*")
-  (parameters
-    '("const-gchar*" "filename")
-  )
-)
-
 (define-method get_chats
   (of-object "EmpathyLogManager")
   (c-name "empathy_log_manager_get_chats")
@@ -1682,6 +1665,23 @@
   )
 )
 
+(define-function log_manager_search_hit_free
+  (c-name "empathy_log_manager_search_hit_free")
+  (return-type "none")
+  (parameters
+    '("EmpathyLogSearchHit*" "hit")
+  )
+)
+
+(define-method observe
+  (of-object "EmpathyLogManager")
+  (c-name "empathy_log_manager_observe")
+  (return-type "none")
+  (parameters
+    '("EmpathyDispatcher*" "dispatcher")
+  )
+)
+
 
 
 ;; From empathy-message.h
@@ -2287,9 +2287,9 @@
 (define-method get_state
   (of-object "EmpathyTpFile")
   (c-name "empathy_tp_file_get_state")
-  (return-type "guint")
+  (return-type "TpFileTransferState")
   (parameters
-    '("guint*" "reason")
+    '("TpFileTransferStateChangeReason*" "reason")
   )
 )
 

Modified: trunk/python/pyempathygtk/pyempathygtk.defs
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.defs	(original)
+++ trunk/python/pyempathygtk/pyempathygtk.defs	Fri Mar  6 11:52:17 2009
@@ -1304,6 +1304,23 @@
   (return-type "GstElement*")
 )
 
+(define-function audio_sink_set_volume
+  (c-name "empathy_audio_sink_set_volume")
+  (return-type "none")
+  (parameters
+    '("EmpathyGstAudioSink*" "sink")
+    '("gdouble" "volume")
+  )
+)
+
+(define-function audio_sink_get_volume
+  (c-name "empathy_audio_sink_get_volume")
+  (return-type "gdouble")
+  (parameters
+    '("EmpathyGstAudioSink*" "sink")
+  )
+)
+
 
 
 ;; From empathy-audio-src.h



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