Commit a7e11de2 authored by Xavier Claessens's avatar Xavier Claessens

disconnect_monitor_signals function is quite useless.

svn path=/trunk/; revision=2095
parent 0c25c082
......@@ -411,22 +411,6 @@ empathy_account_manager_init (EmpathyAccountManager *manager)
mc_accounts_list_free (mc_accounts);
}
static void
disconnect_monitor_signals (McAccountMonitor *monitor,
GObject *obj)
{
g_signal_handlers_disconnect_by_func (monitor,
account_created_cb, obj);
g_signal_handlers_disconnect_by_func (monitor,
account_deleted_cb, obj);
g_signal_handlers_disconnect_by_func (monitor,
account_disabled_cb, obj);
g_signal_handlers_disconnect_by_func (monitor,
account_enabled_cb, obj);
g_signal_handlers_disconnect_by_func (monitor,
account_changed_cb, obj);
}
static void
do_finalize (GObject *obj)
{
......@@ -454,10 +438,18 @@ do_dispose (GObject *obj)
G_CALLBACK (account_status_changed_cb),
obj);
disconnect_monitor_signals (priv->monitor, obj);
if (priv->monitor)
{
g_signal_handlers_disconnect_by_func (priv->monitor,
account_created_cb, obj);
g_signal_handlers_disconnect_by_func (priv->monitor,
account_deleted_cb, obj);
g_signal_handlers_disconnect_by_func (priv->monitor,
account_disabled_cb, obj);
g_signal_handlers_disconnect_by_func (priv->monitor,
account_enabled_cb, obj);
g_signal_handlers_disconnect_by_func (priv->monitor,
account_changed_cb, obj);
g_object_unref (priv->monitor);
priv->monitor = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment