diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-04-28 23:17:58 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-04-29 17:26:43 +0800 |
commit | 71cb9d26791edfca8952b4fcc7170355ed3b2d44 (patch) | |
tree | e9866cae98f84bd3bece746816f7733f7ec8e76b /src/empathy-call-window.c | |
parent | c437b1ed8795f9db28d24719c856a462d764fdcc (diff) | |
download | gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar.gz gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar.bz2 gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar.lz gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar.xz gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.tar.zst gsoc2013-empathy-71cb9d26791edfca8952b4fcc7170355ed3b2d44.zip |
call-window: set remote contact's name in window's title. Fixes #530119
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 0cc87ccf1..47f87f678 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -579,6 +579,30 @@ empathy_call_window_init (EmpathyCallWindow *self) g_object_unref (gui); } +static void +empathy_call_window_constructed (GObject *object) +{ + EmpathyCallWindow *self = EMPATHY_CALL_WINDOW (object); + EmpathyCallWindowPriv *priv = GET_PRIV (self); + EmpathyContact *contact; + + g_assert (priv->handler != NULL); + + g_object_get (priv->handler, "contact", &contact, NULL); + + if (contact != NULL) + { + gchar *tmp; + + tmp = g_strdup_printf (_("Call with %s"), + empathy_contact_get_name (contact)); + gtk_window_set_title (GTK_WINDOW (self), tmp); + + g_free (tmp); + g_object_unref (contact); + } +} + static void empathy_call_window_dispose (GObject *object); static void empathy_call_window_finalize (GObject *object); @@ -624,6 +648,7 @@ empathy_call_window_class_init ( g_type_class_add_private (empathy_call_window_class, sizeof (EmpathyCallWindowPriv)); + object_class->constructed = empathy_call_window_constructed; object_class->set_property = empathy_call_window_set_property; object_class->get_property = empathy_call_window_get_property; |