diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-29 23:58:47 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-29 23:58:47 +0800 |
commit | e4358acdec7b8c278a1950a3da24bab387a0e7b3 (patch) | |
tree | 9a15f253d9c45a90a8794143ecdd854650d58af1 /libempathy-gtk/empathy-call-window.c | |
parent | b8607414ea0e41c44a09d31ebcd0437a3c867a24 (diff) | |
download | gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar.gz gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar.bz2 gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar.lz gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar.xz gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.tar.zst gsoc2013-empathy-e4358acdec7b8c278a1950a3da24bab387a0e7b3.zip |
Revert "merge git work"
This reverts commit 0cfd80847f0d66967f56c7d6b3eb46793f725859.
svn path=/trunk/; revision=519
Diffstat (limited to 'libempathy-gtk/empathy-call-window.c')
-rw-r--r-- | libempathy-gtk/empathy-call-window.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-call-window.c b/libempathy-gtk/empathy-call-window.c index baa169755..a1c7bd799 100644 --- a/libempathy-gtk/empathy-call-window.c +++ b/libempathy-gtk/empathy-call-window.c @@ -24,6 +24,7 @@ #include "config.h" #include <gtk/gtk.h> +#include <glib/gi18n.h> #include <libempathy/empathy-debug.h> @@ -104,6 +105,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 +139,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); } } @@ -142,7 +161,7 @@ call_window_destroy_cb (GtkWidget *widget, g_slice_free (EmpathyCallWindow, window); } -void +GtkWidget * empathy_call_window_show (EmpathyTpCall *call) { EmpathyCallWindow *window; @@ -194,5 +213,7 @@ empathy_call_window_show (EmpathyTpCall *call) window); gtk_widget_show (window->window); + + return window->window; } |