]> git.0d.be Git - empathy.git/commitdiff
Add a title to the incoming call dialog
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Jul 2010 10:27:06 +0000 (12:27 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 7 Jul 2010 08:45:04 +0000 (10:45 +0200)
This gives a bit more context when the dialog is displayed right away.

src/empathy-event-manager.c

index 490a30bc2a4ab72ec00a7f8f75a69241fb2d0ade..7bad8682a14fdf9230f0838e7e3c77e4d257a241 100644 (file)
@@ -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)
     {