Public bug reported:

        /* the daemon is used to communicate via DBus */
        daemon = tp_dbus_daemon_dup(&error);

        if (daemon == NULL)
        {
                g_debug("Cannot create DBus daemon: %s\n", error->message);
                g_error_free(error);
                return;
        }

        priv->manager = TP_ACCOUNT_MANAGER (g_object_new 
(TP_TYPE_ACCOUNT_MANAGER,
                "dbus-daemon", daemon,
                "dbus-connection", ((TpProxy *) daemon)->dbus_connection,
                "bus-name", "org.freedesktop.Telepathy.AccountManager",
                "object-path", "/org/freedesktop/Telepathy/AccountManager",
                NULL));


Any reason to not use tp_account_manager_dup()? That would make this code much 
simpler.

** Affects: indicator-me
     Importance: Undecided
         Status: New

** Affects: indicator-me (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: indicator-me (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/724978

Title:
  Should use tp_account_manager_dup()

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to