diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-24 20:14:05 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-27 19:44:29 +0800 |
commit | 71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba (patch) | |
tree | 0dd596d8815ad897072c4d78f636bd67e226655d /libempathy-gtk | |
parent | 41a3bfca1e22e54c3982f39c560144bc40ecb92f (diff) | |
download | gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar.gz gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar.bz2 gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar.lz gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar.xz gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.tar.zst gsoc2013-empathy-71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba.zip |
account-chooser: use tp_g_signal_connect_object()
https://bugzilla.gnome.org/show_bug.cgi?id=662609
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index 1c158cb1b..c075768b9 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -181,12 +181,11 @@ empathy_account_chooser_init (EmpathyAccountChooser *self) self->priv->manager = tp_account_manager_dup (); - g_signal_connect (self->priv->manager, "account-validity-changed", - G_CALLBACK (account_chooser_account_validity_changed_cb), - self); - g_signal_connect (self->priv->manager, "account-removed", - G_CALLBACK (account_chooser_account_removed_cb), - self); + tp_g_signal_connect_object (self->priv->manager, "account-validity-changed", + G_CALLBACK (account_chooser_account_validity_changed_cb), self, 0); + + tp_g_signal_connect_object (self->priv->manager, "account-removed", + G_CALLBACK (account_chooser_account_removed_cb), self, 0); } static gint @@ -326,12 +325,6 @@ account_chooser_finalize (GObject *object) { EmpathyAccountChooser *self = (EmpathyAccountChooser *) object; - g_signal_handlers_disconnect_by_func (self->priv->manager, - account_chooser_account_validity_changed_cb, - object); - g_signal_handlers_disconnect_by_func (self->priv->manager, - account_chooser_account_removed_cb, - object); g_object_unref (self->priv->manager); G_OBJECT_CLASS (empathy_account_chooser_parent_class)->finalize (object); |