+static void
+update_most_recent_msg (EmpathyRosterContact *self)
+{
+ const gchar* msg = get_most_recent_message (self);
+
+ if (tp_str_empty (msg))
+ {
+ gtk_alignment_set (GTK_ALIGNMENT (self->priv->first_line_alig),
+ 0, 0.5, 1, 1);
+ gtk_widget_hide (self->priv->most_recent_msg);
+ }
+ else
+ {
+ gchar *tmp = g_strdup (msg);
+ if (strchr(tmp, '\n')) strchr(tmp, '\n')[0] = 0;
+ gtk_label_set_text (GTK_LABEL (self->priv->most_recent_msg), tmp);
+ gtk_alignment_set (GTK_ALIGNMENT (self->priv->first_line_alig),
+ 0, 0.75, 1, 1);
+ gtk_misc_set_alignment (GTK_MISC (self->priv->most_recent_msg), 0, 0.25);
+ g_free (tmp);
+ }
+}
+