diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-09-24 11:37:56 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-09-25 11:31:36 +0200 |
commit | 4a993e753a898899a6cc05dbbcc222ef6fe5cbae (patch) | |
tree | 5fc8bbec344af5dcd063c8da30f73d5ab23c5618 /panels/online-accounts | |
parent | 8f3c5793bba8c152549535b5d2716766aeb1b91f (diff) | |
download | gnome-control-center-4a993e753a898899a6cc05dbbcc222ef6fe5cbae.tar.gz |
online-accounts: Remove unneeded signal disconnections
Those signals will not be emitted anymore, as the objects that
could emit them will be destroyed.
Fixes a warning on exit, as panel->accounts_treeview is already
destroyed when we get there.
https://bugzilla.gnome.org/show_bug.cgi?id=684702
Diffstat (limited to 'panels/online-accounts')
-rw-r--r-- | panels/online-accounts/cc-online-accounts-panel.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c index fefb01e2c..b663b0645 100644 --- a/panels/online-accounts/cc-online-accounts-panel.c +++ b/panels/online-accounts/cc-online-accounts-panel.c @@ -120,23 +120,11 @@ goa_panel_finalize (GObject *object) { GoaPanel *panel = GOA_PANEL (object); - g_signal_handlers_disconnect_by_func (gtk_tree_view_get_selection (GTK_TREE_VIEW (panel->accounts_treeview)), - G_CALLBACK (on_tree_view_selection_changed), - panel); if (panel->accounts_model != NULL) - { - g_signal_handlers_disconnect_by_func (panel->accounts_model, G_CALLBACK (on_model_row_deleted), panel); - g_signal_handlers_disconnect_by_func (panel->accounts_model, G_CALLBACK (on_model_row_inserted), panel); - g_clear_object (&panel->accounts_model); - } + g_clear_object (&panel->accounts_model); if (panel->client != NULL) - { - g_signal_handlers_disconnect_by_func (panel->client, - G_CALLBACK (on_account_changed), - panel); - g_object_unref (panel->client); - } + g_object_unref (panel->client); g_object_unref (panel->builder); G_OBJECT_CLASS (goa_panel_parent_class)->finalize (object); |