diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-08-19 23:50:14 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-08-19 23:50:44 +0800 |
commit | c98e85dcf635914dc66755d6a8560e2d370cfffe (patch) | |
tree | 3aa9733ce27b1a93ed3179f85e3fb7bb7aafab50 /libempathy-gtk | |
parent | c777b477a4003b4f49285500736f0c91767c76cb (diff) | |
download | gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar.gz gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar.bz2 gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar.lz gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar.xz gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.tar.zst gsoc2013-empathy-c98e85dcf635914dc66755d6a8560e2d370cfffe.zip |
empathy-connectivity: only send the new state in the state-change signal
It can be assumed that the old state was always the opposite to the
new state, because the signal is only ever fired if the new state
differs from the old state.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-presence-chooser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index b0668196b..490ad898a 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -713,7 +713,6 @@ presence_chooser_entry_focus_out_cb (EmpathyPresenceChooser *chooser, static void presence_chooser_connectivity_state_change (EmpathyConnectivity *connectivity, - gboolean old_online, gboolean new_online, EmpathyPresenceChooser *chooser) { @@ -796,7 +795,7 @@ empathy_presence_chooser_init (EmpathyPresenceChooser *chooser) g_signal_connect (priv->connectivity, "state-change", G_CALLBACK (presence_chooser_connectivity_state_change), chooser); - presence_chooser_connectivity_state_change (priv->connectivity, FALSE, + presence_chooser_connectivity_state_change (priv->connectivity, empathy_connectivity_is_online (priv->connectivity), chooser); } |