[empathy] Add a title to the incoming call dialog



commit 48d289288400d52adc40a78548ba0dbaf7dea3cd
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jul 6 12:27:06 2010 +0200

    Add a title to the incoming call dialog
    
    This gives a bit more context when the dialog is displayed right away.

 src/empathy-event-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 490a30b..7bad868 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -454,6 +454,7 @@ event_channel_process_voip_func (EventPriv *event)
   GtkWidget *image;
   EmpathyTpCall *call;
   gboolean video;
+  gchar *title;
 
   if (event->approval->dialog != NULL)
     {
@@ -475,6 +476,12 @@ event_channel_process_voip_func (EventPriv *event)
       _("%s is calling you. Do you want to answer?"),
       empathy_contact_get_name (event->approval->contact));
 
+  title = g_strdup_printf (_("Incoming call from %s"),
+      empathy_contact_get_name (event->approval->contact));
+
+  gtk_window_set_title (GTK_WINDOW (dialog), title);
+  g_free (title);
+
   /* Set image of the dialog */
   if (video)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]