aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-06 04:34:41 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-06 04:34:41 +0800
commit1557095113a3c0f5baadcfb1e953d73762e5263e (patch)
tree6af706fb1f4f673120981e033768a09169544c11 /python
parent62828fac680bd53e0047d9ae2a281c864075c809 (diff)
downloadgsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar.gz
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar.bz2
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar.lz
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar.xz
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.tar.zst
gsoc2013-empathy-1557095113a3c0f5baadcfb1e953d73762e5263e.zip
Keep a priv pointer in the object struct instead of using G_TYPE_INSTANCE_GET_PRIVATE all the time.
svn path=/trunk/; revision=1082
Diffstat (limited to 'python')
-rw-r--r--python/pyempathy/pyempathy.defs52
1 files changed, 28 insertions, 24 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index b45b06bab..700d43935 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -172,19 +172,6 @@
)
)
-(define-enum MessageType
- (in-module "Empathy")
- (c-name "EmpathyMessageType")
- (gtype-id "EMPATHY_TYPE_MESSAGE_TYPE")
- (values
- '("normal" "EMPATHY_MESSAGE_TYPE_NORMAL")
- '("action" "EMPATHY_MESSAGE_TYPE_ACTION")
- '("notice" "EMPATHY_MESSAGE_TYPE_NOTICE")
- '("auto-reply" "EMPATHY_MESSAGE_TYPE_AUTO_REPLY")
- '("last" "EMPATHY_MESSAGE_TYPE_LAST")
- )
-)
-
(define-flags Capabilities
(in-module "Empathy")
(c-name "EmpathyCapabilities")
@@ -622,8 +609,8 @@
;; From empathy-message.h
-(define-function empathy_message_get_gtype
- (c-name "empathy_message_get_gtype")
+(define-function empathy_message_get_type
+ (c-name "empathy_message_get_type")
(return-type "GType")
)
@@ -636,18 +623,18 @@
)
)
-(define-method get_type
+(define-method get_tptype
(of-object "EmpathyMessage")
- (c-name "empathy_message_get_type")
- (return-type "EmpathyMessageType")
+ (c-name "empathy_message_get_tptype")
+ (return-type "TpChannelTextMessageType")
)
-(define-method set_type
+(define-method set_tptype
(of-object "EmpathyMessage")
- (c-name "empathy_message_set_type")
+ (c-name "empathy_message_set_tptype")
(return-type "none")
(parameters
- '("EmpathyMessageType" "type")
+ '("TpChannelTextMessageType" "type")
)
)
@@ -728,16 +715,18 @@
(define-function empathy_message_type_from_str
(c-name "empathy_message_type_from_str")
- (return-type "EmpathyMessageType")
+ (return-type "TpChannelTextMessageType")
(parameters
'("const-gchar*" "type_str")
)
)
-(define-method to_str
- (of-object "EmpathyMessageType")
+(define-function empathy_message_type_to_str
(c-name "empathy_message_type_to_str")
(return-type "const-gchar*")
+ (parameters
+ '("TpChannelTextMessageType" "type")
+ )
)
@@ -1808,6 +1797,21 @@
)
)
+(define-method start_tone
+ (of-object "EmpathyTpCall")
+ (c-name "empathy_tp_call_start_tone")
+ (return-type "none")
+ (parameters
+ '("TpDTMFEvent" "event")
+ )
+)
+
+(define-method stop_tone
+ (of-object "EmpathyTpCall")
+ (c-name "empathy_tp_call_stop_tone")
+ (return-type "none")
+)
+
;; From empathy-tp-tube.h