]> git.0d.be Git - empathy.git/commitdiff
presence-chooser: only listen to EmpathyIdle::notify::state
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Thu, 17 Sep 2009 22:45:03 +0000 (23:45 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Thu, 17 Sep 2009 22:55:31 +0000 (23:55 +0100)
Previously, when the global presence changed in EmpathyIdle, it would
notify for "state" and "status", so the state change callback would be
called twice.

Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy-gtk/empathy-presence-chooser.c

index ba36e091c518a65419e6544c9169e3dc58b85813..373b851d5bc99ef9b2b41021636bf6352869c856 100644 (file)
@@ -785,7 +785,7 @@ empathy_presence_chooser_init (EmpathyPresenceChooser *chooser)
 
        priv->idle = empathy_idle_dup_singleton ();
        presence_chooser_presence_changed_cb (chooser);
-       g_signal_connect_swapped (priv->idle, "notify",
+       g_signal_connect_swapped (priv->idle, "notify::state",
                G_CALLBACK (presence_chooser_presence_changed_cb),
                chooser);