static void contact_widget_presence_notify_cb (EmpathyContactWidget *information) { const gchar *status; gchar *markup_text = NULL; status = empathy_contact_get_status (information->contact); if (status != NULL) markup_text = empathy_add_link_markup (status); gtk_label_set_markup (GTK_LABEL (information->label_status), markup_text); g_free (markup_text); gtk_image_set_from_icon_name (GTK_IMAGE (information->image_state), empathy_icon_name_for_contact (information->contact), GTK_ICON_SIZE_BUTTON); gtk_widget_show (information->image_state); }
static gchar * linkify_first_value (GStrv values) { return empathy_add_link_markup (values[0]); }