From ecb7dddc52d4f7b52b31d01afdf1ac457e8f854d Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 9 Jan 2009 16:16:08 +0000 Subject: Only show pending messages after the log and explain why show_pending_messages is there when tp-chat gets set Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2201 --- libempathy-gtk/empathy-chat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-chat.c') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 00906ae80..bb7db87da 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1357,8 +1357,6 @@ chat_create_ui (EmpathyChat *chat) /* Add the main widget in the chat widget */ gtk_container_add (GTK_CONTAINER (chat), priv->widget); - - show_pending_messages (chat); } static void @@ -1456,6 +1454,7 @@ chat_constructed (GObject *object) chat_create_ui (chat); chat_add_logs (chat); + show_pending_messages (chat); } static void @@ -1650,7 +1649,10 @@ empathy_chat_set_tp_chat (EmpathyChat *chat, g_object_notify (G_OBJECT (chat), "id"); g_object_notify (G_OBJECT (chat), "account"); - show_pending_messages (chat); + /* This is a noop when tp-chat is set at object construction time and causes + * the pending messages to be show when it's set on the object after it has + * been created */ + show_pending_messages (chat); } McAccount * -- cgit v1.2.3