aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-12-29 23:49:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-12-29 23:49:36 +0800
commitcaec259128182461e7454090cb7d88d7919483b2 (patch)
tree040549988f93c664c11dd504eee2aff9574b7070 /libempathy-gtk
parentfa76b3717b8e4268485a419d25c3399534f4165f (diff)
downloadgsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar.gz
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar.bz2
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar.lz
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar.xz
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.tar.zst
gsoc2013-empathy-caec259128182461e7454090cb7d88d7919483b2.zip
Set call window title to contact name
svn path=/trunk/; revision=513
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-call-window.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-call-window.c b/libempathy-gtk/empathy-call-window.c
index 608454a0d..9b2b46f4b 100644
--- a/libempathy-gtk/empathy-call-window.c
+++ b/libempathy-gtk/empathy-call-window.c
@@ -104,6 +104,20 @@ call_window_capabilities_notify_cb (EmpathyContact *contact,
}
static void
+call_window_name_notify_cb (EmpathyContact *contact,
+ GParamSpec *param,
+ EmpathyCallWindow *window)
+{
+ const gchar *name;
+ gchar *title;
+
+ name = empathy_contact_get_name (contact);
+ title = g_strdup_printf (_("Call from %s"), name);
+ gtk_window_set_title (GTK_WINDOW (window->window), title);
+ g_free (title);
+}
+
+static void
call_window_status_notify_cb (EmpathyTpCall *call,
GParamSpec *param,
EmpathyCallWindow *window)
@@ -124,7 +138,11 @@ call_window_status_notify_cb (EmpathyTpCall *call,
g_signal_connect (contact, "notify::capabilities",
G_CALLBACK (call_window_capabilities_notify_cb),
window);
+ g_signal_connect (contact, "notify::name",
+ G_CALLBACK (call_window_name_notify_cb),
+ window);
call_window_capabilities_notify_cb (contact, NULL, window);
+ call_window_name_notify_cb (contact, NULL, window);
}
}