Commit 9c654275 authored by Guillaume Desmottes's avatar Guillaume Desmottes

roster-contact: prefix status msg in case of error
parent a12c04c8
#include "config.h"
#include <glib/gi18n-lib.h>
#include "empathy-roster-contact.h"
#include <telepathy-glib/telepathy-glib.h>
......@@ -202,9 +204,27 @@ update_presence_msg (EmpathyRosterContact *self)
gtk_widget_hide (self->priv->presence_msg);
FolksPresenceType type;
type = folks_presence_details_get_presence_type (
FOLKS_PRESENCE_DETAILS (self->priv->individual));
gchar *tmp;
/* Add a prefix explaining that something goes wrong when trying to
* fetch contact's presence. */
tmp = g_strdup_printf (_("Server cannot find contact: %s"), msg);
gtk_label_set_text (GTK_LABEL (self->priv->presence_msg), tmp);
g_free (tmp);
gtk_label_set_text (GTK_LABEL (self->priv->presence_msg), msg);
gtk_alignment_set (GTK_ALIGNMENT (self->priv->first_line_alig),
0, 0.75, 1, 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment