From f923e5ed0d36621b580061dbaff834ec7e7ee0bc Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Wed, 1 Jul 2009 10:08:48 -0300 Subject: Fix Bug 585601: Adium theme is not reloaded on /clear or Ctrl+L or clear menu item The theme was deciding that new messages should be 'joined' to an already existing message bubble, because not enough time had passed, even after clearing the chat area. We now clear last_contact to make sure this never happens. --- libempathy-gtk/empathy-theme-adium.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libempathy-gtk/empathy-theme-adium.c') diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index b16a3e7c9..40ae291bf 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -564,6 +564,13 @@ theme_adium_clear (EmpathyChatView *view) priv->data->template_html, basedir_uri); g_free (basedir_uri); + + /* Clear last contact to avoid trying to add a 'joined' + * message when we don't have an insertion point. */ + if (priv->last_contact) { + g_object_unref (priv->last_contact); + priv->last_contact = NULL; + } } static gboolean -- cgit v1.2.3