~ubuntu-branches/ubuntu/lucid/empathy/lucid-updates

« back to all changes in this revision

Viewing changes to libempathy/empathy-contact.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2010-04-09 15:07:58 UTC
  • mfrom: (1.1.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409150758-dzc1z2r690p28ort
Tags: 2.30.0.1-0ubuntu1
* New upstream version 
  - empathy crashed with SIGSEGV in g_closure_invoke() (LP: #527296)
  - contact list is empty for a jabber account with a lot of 
    contacts (LP: #539023)
  - Join room should be greyed out for AIM (LP: #540525)
  - Previous/Next Tab menu items aren't disabled if at the first/last tab 
    and gtk-keynav-wrap-around is 0
  - empathy incorrectly updates our own IRC nick for /me
  - Shouldn't request RoomList channel if not supported by connection
  - account-chooser crashes when setting a filter and has-all-option to TRUE
  - empathy crashed with SIGSEGV in g_object_unref() (LP: #556977)
  - Wrong account name when using the assistant 
  - Empathy fails to initiate a audio/video call over XMPP
* debian/patches/20_libindicate.patch
  - Ported patch to remove NotificationData, removed upstream
* debian/patches/32_append_notifications.patch
  - Ported patch to remove NotificationData, removed upstream
* debian/patches/21_login_indicators.patch
  - Only display indicator for signon events if the preference 
    is set (LP: #533857)

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
empathy_contact_get_name (EmpathyContact *contact)
514
514
{
515
515
  EmpathyContactPriv *priv;
 
516
  const gchar        *alias;
516
517
 
517
518
  g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
518
519
 
519
520
  priv = GET_PRIV (contact);
520
521
 
521
522
  if (priv->tp_contact != NULL)
522
 
    return tp_contact_get_alias (priv->tp_contact);
523
 
 
524
 
  if (EMP_STR_EMPTY (priv->name))
525
 
      return empathy_contact_get_id (contact);
526
 
 
527
 
  return priv->name;
 
523
    alias = tp_contact_get_alias (priv->tp_contact);
 
524
  else
 
525
    alias = priv->name;
 
526
 
 
527
  if (!EMP_STR_EMPTY (alias))
 
528
    return alias;
 
529
  else
 
530
    return empathy_contact_get_id (contact);
528
531
}
529
532
 
530
533
void