aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-07 00:49:01 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-07 00:49:01 +0800
commit9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855 (patch)
tree6002960fd501559c78475443174d91c5ce0bfa42 /python
parentbdec6845cd1c7fb4b2d4f05cf9af9164b2d03c92 (diff)
downloadgsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar.gz
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar.bz2
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar.lz
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar.xz
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.tar.zst
gsoc2013-empathy-9175f6f4ddfb667d27e6a4d6b6b8dc7b91c45855.zip
Update empathy_sound_play () to be nicer to use and centralize the list
of sounds we support. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2082 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'python')
-rw-r--r--python/pyempathygtk/pyempathygtk.defs23
1 files changed, 20 insertions, 3 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index 3c83a28ec..574bbcd1f 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -198,6 +198,25 @@
)
)
+(define-enum Sound
+ (in-module "Empathy")
+ (c-name "EmpathySound")
+ (gtype-id "EMPATHY_TYPE_SOUND")
+ (values
+ '("empathy-sound-message-incoming" "EMPATHY_SOUND_MESSAGE_INCOMING")
+ '("empathy-sound-message-outgoing" "EMPATHY_SOUND_MESSAGE_OUTGOING")
+ '("empathy-sound-conversation-new" "EMPATHY_SOUND_CONVERSATION_NEW")
+ '("empathy-sound-contact-connected" "EMPATHY_SOUND_CONTACT_CONNECTED")
+ '("empathy-sound-contact-disconnected" "EMPATHY_SOUND_CONTACT_DISCONNECTED")
+ '("empathy-sound-account-connected" "EMPATHY_SOUND_ACCOUNT_CONNECTED")
+ '("empathy-sound-account-disconnected" "EMPATHY_SOUND_ACCOUNT_DISCONNECTED")
+ '("empathy-sound-phone-incoming" "EMPATHY_SOUND_PHONE_INCOMING")
+ '("empathy-sound-phone-outgoing" "EMPATHY_SOUND_PHONE_OUTGOING")
+ '("empathy-sound-phone-hangup" "EMPATHY_SOUND_PHONE_HANGUP")
+ '("last-empathy-sound" "LAST_EMPATHY_SOUND")
+ )
+)
+
;; From empathy-account-chooser.h
@@ -1737,9 +1756,7 @@
(return-type "none")
(parameters
'("GtkWidget*" "widget")
- '("const-char*" "key")
- '("const-char*" "event_id")
- '("const-char*" "description")
+ '("EmpathySound" "sound_id")
)
)