[empathy] call-window: set remote contact's name in window's title. Fixes #530119
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] call-window: set remote contact's name in window's title. Fixes #530119
- Date: Wed, 29 Apr 2009 06:56:33 -0400 (EDT)
commit 71cb9d26791edfca8952b4fcc7170355ed3b2d44
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Apr 28 16:17:58 2009 +0100
call-window: set remote contact's name in window's title. Fixes #530119
---
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 0cc87cc..47f87f6 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]