aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-06-13 19:13:47 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-06-13 19:13:47 +0800
commitbfb8256258a6a73ff25cc421806b7d99f156784c (patch)
treedbc5092d329af0456c03d21f75ce144b6ec4e6c6 /src
parent7f5ed39202218acf13986a2faf9606b3ab0f52bb (diff)
downloadgsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar.gz
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar.bz2
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar.lz
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar.xz
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.tar.zst
gsoc2013-empathy-bfb8256258a6a73ff25cc421806b7d99f156784c.zip
Better dialog message when a call is rejected (Alban Crequy)
Example: "Incoming call from xxx rejected because there is already a running call." git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1161 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 75a076291..67a3d87a8 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -494,6 +494,10 @@ empathy_call_window_new (TpChannel *channel)
else
{
GtkWidget *dialog;
+ EmpathyContact *contact;
+ g_object_get (window->call,
+ "contact", &contact,
+ NULL);
/* We don't want to have multiple calls running.
* FIXME: We should use the hold interface... */
@@ -501,7 +505,7 @@ empathy_call_window_new (TpChannel *channel)
dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
- _("Call rejected because there is already a running call."));
+ _("Incoming call from %s rejected because there is already a running call."), empathy_contact_get_name (contact));
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy),
NULL);
gtk_widget_show (dialog);