diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:49:01 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:49:01 +0800 |
commit | 35f3ccfb4d7934dbe3192e9d5e418fe7cb392176 (patch) | |
tree | 6002960fd501559c78475443174d91c5ce0bfa42 /src/empathy-main-window.c | |
parent | 9cd97524aad5e22138407fa59ab4be651fe6468d (diff) | |
download | gsoc2013-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 'src/empathy-main-window.c')
-rw-r--r-- | src/empathy-main-window.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 07f4b9f7d..f034638e3 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -284,8 +284,7 @@ static void main_window_flash_start (EmpathyMainWindow *window) { empathy_sound_play (GTK_WIDGET (window->window), - EMPATHY_PREFS_SOUNDS_NEW_CONVERSATION, - "message-new-instant", _("Incoming chat request")); + EMPATHY_SOUND_CONVERSATION_NEW); if (window->flash_timeout_id != 0) { return; @@ -431,16 +430,14 @@ main_window_connection_changed_cb (EmpathyAccountManager *manager, if (current == TP_CONNECTION_STATUS_DISCONNECTED) { empathy_sound_play (GTK_WIDGET (window->window), - EMPATHY_PREFS_SOUNDS_SERVICE_LOGOUT, - "service-logout", _("Disconnected from server")); + EMPATHY_SOUND_ACCOUNT_DISCONNECTED); } if (current == TP_CONNECTION_STATUS_CONNECTED) { GtkWidget *error_widget; empathy_sound_play (GTK_WIDGET (window->window), - EMPATHY_PREFS_SOUNDS_SERVICE_LOGIN, - "service-login", _("Connected to server")); + EMPATHY_SOUND_ACCOUNT_CONNECTED); /* Account connected without error, remove error message if any */ error_widget = g_hash_table_lookup (window->errors, account); @@ -471,16 +468,14 @@ main_window_contact_presence_changed_cb (EmpathyContactMonitor *monitor, if (previous < MC_PRESENCE_AVAILABLE && current > MC_PRESENCE_OFFLINE) { /* someone is logging in */ empathy_sound_play (GTK_WIDGET (window->window), - EMPATHY_PREFS_SOUNDS_CONTACT_LOGIN, - "service-login", _("Contact connected")); + EMPATHY_SOUND_CONTACT_CONNECTED); return; } if (previous > MC_PRESENCE_OFFLINE && current < MC_PRESENCE_AVAILABLE) { /* someone is logging off */ empathy_sound_play (GTK_WIDGET (window->window), - EMPATHY_PREFS_SOUNDS_CONTACT_LOGOUT, - "service-logout", _("Contact disconnected")); + EMPATHY_SOUND_CONTACT_DISCONNECTED); } } |