[gnome-control-center] online-accounts: set up finalize handler at class init time



commit 3bf8bcf3f8a357f0c33f1f790852c42eec954483
Author: Ray Strode <rstrode redhat com>
Date:   Tue Aug 21 13:29:46 2012 -0400

    online-accounts: set up finalize handler at class init time
    
    It was being set up at class finalization time, which is too late.
    
    Fixes crash when switching from panel to shell and back
    (and then try to interact with the switches).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682379

 panels/online-accounts/cc-online-accounts-panel.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index f766ecb..1833e1c 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -280,6 +280,7 @@ goa_panel_class_init (GoaPanelClass *klass)
   panel_class->get_help_uri = goa_panel_get_help_uri;
 
   object_class->set_property = goa_panel_set_property;
+  object_class->finalize = goa_panel_finalize;
 
   g_object_class_override_property (object_class, PROP_ARGV, "argv");
 }
@@ -287,10 +288,6 @@ goa_panel_class_init (GoaPanelClass *klass)
 static void
 goa_panel_class_finalize (GoaPanelClass *klass)
 {
-  GObjectClass *gobject_class;
-
-  gobject_class = G_OBJECT_CLASS (klass);
-  gobject_class->finalize = goa_panel_finalize;
 }
 
 /* ---------------------------------------------------------------------------------------------------- */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]