rename EmpathyIdle to EmpathyPresenceManager (#640532) It's doing more than idle management now.
libempathy/empathy-idle.c: use tp_g_signal_connect_object instead of empathy_signal_connect_weak
empathy-idle: stop using tp_dbus_daemon_dup It has been deprecated.
idle: Only restore state but not status message when getting back from idle (#566832)
Ensure that the EmpathyIdle is not used in account_manager_ready_cb after being finalized Fixes #608813
idle: make empathy_idle_get_status static It's not used anymore and other components should use the account manager directly.
remove empathy_idle_{get,set}_flash_state
[EmpathyIdle] track whether the AccountManager is ready, warn if it is not
idle: added a comment to explain _is_just_connected Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: don't hardcode 10 seconds as the "just connected" time Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: add comment about the connect_times hash table types Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: updated comment Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
all: log error messages if preparing the account manager fails Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: use the TpAccount pointer as key to the hash table, and remove values on disconnect https://bugzilla.gnome.org/show_bug.cgi?id=599169#c2 Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Add empathy_idle_account_is_just_connected function. Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: port to new tp-glib account API Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Add empathy_idle_get_requested_presence function. Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: work around the case if the session doesn't tell us when we go idle (fixes bug #594619) Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
idle: wait for the account manager to be ready before setting initial state Also, if we can get the global presence from the account manager straight away (in _init), then don't bother signalling the change. Otherwise, do signal the initial setting so things like the presence chooser and status icon will be updated with the initial presence. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
When not connected don't apply !offline states but save them When we're not connected to a network don't allow setting the status to anything else then offline, but when a status is set do save it so it can be applied as soon as soon as we get network connectivity