aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:49:01 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:49:01 +0800
commit35f3ccfb4d7934dbe3192e9d5e418fe7cb392176 (patch)
tree6002960fd501559c78475443174d91c5ce0bfa42 /libempathy-gtk/empathy-ui-utils.h
parent9cd97524aad5e22138407fa59ab4be651fe6468d (diff)
downloadgsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar.gz
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar.bz2
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar.lz
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar.xz
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.tar.zst
gsoc2013-empathy-35f3ccfb4d7934dbe3192e9d5e418fe7cb392176.zip
Update empathy_sound_play () to be nicer to use and centralize the list
of sounds we support. svn path=/trunk/; revision=2082
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.h')
-rw-r--r--libempathy-gtk/empathy-ui-utils.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h
index 285b66452..0ed291af7 100644
--- a/libempathy-gtk/empathy-ui-utils.h
+++ b/libempathy-gtk/empathy-ui-utils.h
@@ -44,6 +44,20 @@
G_BEGIN_DECLS
+typedef enum {
+ EMPATHY_SOUND_MESSAGE_INCOMING,
+ EMPATHY_SOUND_MESSAGE_OUTGOING,
+ EMPATHY_SOUND_CONVERSATION_NEW,
+ EMPATHY_SOUND_CONTACT_CONNECTED,
+ EMPATHY_SOUND_CONTACT_DISCONNECTED,
+ EMPATHY_SOUND_ACCOUNT_CONNECTED,
+ EMPATHY_SOUND_ACCOUNT_DISCONNECTED,
+ EMPATHY_SOUND_PHONE_INCOMING,
+ EMPATHY_SOUND_PHONE_OUTGOING,
+ EMPATHY_SOUND_PHONE_HANGUP,
+ LAST_EMPATHY_SOUND
+} EmpathySound;
+
#define G_STR_EMPTY(x) ((x) == NULL || (x)[0] == '\0')
void empathy_gtk_init (void);
@@ -116,9 +130,7 @@ void empathy_send_file_with_file_chooser (EmpathyContact *conta
/* Sounds */
void empathy_sound_play (GtkWidget *widget,
- const char *key,
- const char *event_id,
- const char *description);
+ EmpathySound sound_id);
G_END_DECLS