aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-idle.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-19 22:22:05 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-08-19 23:49:56 +0800
commit363e6b81d004687f286fcd30322e94bd15c14e8f (patch)
tree1d29dad39f3b87a2c4a75427cf2e7e3b59291a5b /libempathy/empathy-idle.c
parent6d55ee1e5cfce1655ed34b8e36ef23167a7d9818 (diff)
downloadgsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar.gz
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar.bz2
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar.lz
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar.xz
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.tar.zst
gsoc2013-empathy-363e6b81d004687f286fcd30322e94bd15c14e8f.zip
empathy-idle: no need to listen to use-conn
If use_conn is set to FALSE, then EmpathyConnectivity will signal status-change with a new online status of TRUE, which will do the right thing. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy/empathy-idle.c')
-rw-r--r--libempathy/empathy-idle.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 5f38e941b..c3e6b0177 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -258,22 +258,6 @@ idle_state_change_cb (EmpathyConnectivity *connectivity,
}
static void
-idle_use_conn_cb (GObject *object,
- GParamSpec *pspec,
- EmpathyIdle *idle)
-{
- EmpathyIdlePriv *priv = GET_PRIV (idle);
-
- if (!empathy_connectivity_get_use_conn (priv->connectivity)) {
- if (priv->saved_state != TP_CONNECTION_PRESENCE_TYPE_UNSET) {
- empathy_idle_set_state (idle, priv->saved_state);
- }
-
- priv->saved_state = TP_CONNECTION_PRESENCE_TYPE_UNSET;
- }
-}
-
-static void
idle_finalize (GObject *object)
{
EmpathyIdlePriv *priv;
@@ -289,8 +273,6 @@ idle_finalize (GObject *object)
g_signal_handlers_disconnect_by_func (priv->connectivity,
idle_state_change_cb, object);
- g_signal_handlers_disconnect_by_func (priv->connectivity,
- idle_use_conn_cb, object);
g_object_unref (priv->connectivity);
@@ -503,8 +485,6 @@ empathy_idle_init (EmpathyIdle *idle)
priv->connectivity = empathy_connectivity_dup_singleton ();
g_signal_connect (priv->connectivity, "state-change",
G_CALLBACK (idle_state_change_cb), idle);
- g_signal_connect (priv->connectivity, "notify::use-conn",
- G_CALLBACK (idle_use_conn_cb), idle);
}
EmpathyIdle *