aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:45:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:45:51 +0800
commitb7bbdc37baa74f46c99ea4299a34b7ea4b4053e5 (patch)
tree0e9124d29e755b08b68fe1ea30cf92b87bd405d4 /src/empathy-call-window.c
parent8861b950403401359bc76abde0d2b211f77f5352 (diff)
downloadgsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar.gz
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar.bz2
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar.lz
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar.xz
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.tar.zst
gsoc2013-empathy-b7bbdc37baa74f46c99ea4299a34b7ea4b4053e5.zip
Adapt Patryk's patch to trunk.
svn path=/trunk/; revision=2022
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 8edf6817c..f8ccfc648 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -25,6 +25,7 @@
#include <glade/glade.h>
#include <glib/gi18n.h>
+#include <canberra-gtk.h>
#include <telepathy-glib/enums.h>
@@ -194,6 +195,11 @@ static void
call_window_hang_up_button_clicked_cb (GtkWidget *widget,
EmpathyCallWindow *window)
{
+ ca_gtk_play_for_widget (GTK_WIDGET (window->window), 0,
+ CA_PROP_EVENT_ID, "phone-hangup",
+ CA_PROP_EVENT_DESCRIPTION, _("Voice call ended"),
+ CA_PROP_APPLICATION_NAME, g_get_application_name (),
+ NULL);
DEBUG ("Call clicked, end call");
call_window_finalize (window);
}
@@ -394,8 +400,25 @@ call_window_update (EmpathyCallWindow *window)
gtk_window_set_title (GTK_WINDOW (window->window), title);
gtk_label_set_text (GTK_LABEL (window->status_label), _("Ringing"));
gtk_widget_set_sensitive (window->hang_up_button, TRUE);
+
if (is_incoming)
+ {
call_window_show_confirmation_dialog (window);
+ ca_gtk_play_for_widget (GTK_WIDGET (window->window), 0,
+ CA_PROP_EVENT_ID, "phone-incoming-call",
+ CA_PROP_EVENT_DESCRIPTION, _("Incoming voice call"),
+ CA_PROP_APPLICATION_NAME, g_get_application_name (),
+ NULL);
+ }
+ else
+ {
+ ca_gtk_play_for_widget (GTK_WIDGET (window->window), 0,
+ CA_PROP_EVENT_ID, "phone-outgoing-calling",
+ CA_PROP_EVENT_DESCRIPTION, _("Outgoing voice call"),
+ CA_PROP_APPLICATION_NAME, g_get_application_name (),
+ NULL);
+ }
+
}
else if (window->status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
{