~ubuntu-branches/ubuntu/karmic/empathy/karmic-updates

« back to all changes in this revision

Viewing changes to libempathy/empathy-contact.c

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2009-08-28 19:48:30 UTC
  • mfrom: (1.1.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20090828194830-qzm48cy8q3z3pyx2
Tags: 2.27.91.1-2ubuntu1
* Merge from debian experimental, remaining changes (LP: #419811):
  - Add Suggests on telepathy-idle
  - Bump telepathy-haze to recommends
  - Drop geoloc support, dependencies not in main
  - add build-dep libx11-dev (old missing one), libgstfarsight0.10-dev,
    libdbus-glib-1-dev and libnm-glib-dev
  - add Vcs-Bzr tag
* debian/control: Set the maintainer to the core team

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
      /* FIXME: This assume the account manager already exists */
571
571
      manager = empathy_account_manager_dup_singleton ();
572
572
      connection = tp_contact_get_connection (priv->tp_contact);
573
 
      priv->account = empathy_account_manager_get_account (manager, connection);
 
573
      priv->account = empathy_account_manager_get_account_for_connection (
 
574
          manager, connection);
574
575
      g_object_ref (priv->account);
575
576
      g_object_unref (manager);
576
577
    }
857
858
  gchar *avatar_path;
858
859
  gchar *avatar_file;
859
860
  gchar *token_escaped;
860
 
  gchar *contact_escaped;
861
861
 
862
862
  if (EMP_STR_EMPTY (empathy_contact_get_id (contact)))
863
863
    return NULL;
864
864
 
865
 
  contact_escaped = tp_escape_as_identifier (empathy_contact_get_id (contact));
866
865
  token_escaped = tp_escape_as_identifier (token);
867
866
  account = empathy_contact_get_account (contact);
868
867
 
869
 
  /* FIXME: Do not use the account, but proto/cm instead */
870
868
  avatar_path = g_build_filename (g_get_user_cache_dir (),
871
 
      PACKAGE_NAME,
 
869
      "telepathy",
872
870
      "avatars",
873
 
      empathy_account_get_unique_name (account),
874
 
      contact_escaped,
 
871
      empathy_account_get_connection_manager (account),
 
872
      empathy_account_get_protocol (account),
875
873
      NULL);
876
874
  g_mkdir_with_parents (avatar_path, 0700);
877
875
 
878
876
  avatar_file = g_build_filename (avatar_path, token_escaped, NULL);
879
877
 
880
 
  g_free (contact_escaped);
881
878
  g_free (token_escaped);
882
879
  g_free (avatar_path);
883
880