From ea8355c99dc527d7602ce7b0c5bf3a83b2a8adaa Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 17 Sep 2009 23:45:03 +0100 Subject: presence-chooser: only listen to EmpathyIdle::notify::state 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 --- libempathy-gtk/empathy-presence-chooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-presence-chooser.c') diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index ba36e091c..373b851d5 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -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); -- cgit v1.2.3