aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:52:17 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:52:17 +0800
commit164b812f079db09d1fb91b4ed6031ae72ae574e8 (patch)
tree3391562d3dd5d82565be7d2b39603e12660e9b7d
parent219a9540f48e706daa4c20c8ab30709806d9ba36 (diff)
downloadgsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar.gz
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar.bz2
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar.lz
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar.xz
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.tar.zst
gsoc2013-empathy-164b812f079db09d1fb91b4ed6031ae72ae574e8.zip
Updated python bindings.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2596
-rw-r--r--python/pyempathy/pyempathy.defs42
-rw-r--r--python/pyempathygtk/pyempathygtk.defs17
2 files changed, 38 insertions, 21 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 10f32f7e2..1a61b31b3 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -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")
)
)
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index c4cc1e29c..2c5515da8 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -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