[gnome-control-center/gnome-3-4] online-accounts: set up finalize handler at class init time
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-4] online-accounts: set up finalize handler at class init time
- Date: Tue, 21 Aug 2012 18:40:52 +0000 (UTC)
commit 933c883f5297c7a36cb438822822c462412a8ec2
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
(cherry picked from commit 3bf8bcf3f8a357f0c33f1f790852c42eec954483)
Conflicts:
panels/online-accounts/cc-online-accounts-panel.c
panels/online-accounts/cc-online-accounts-panel.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index a06db9a..4d9c89d 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -220,15 +220,13 @@ goa_panel_init (GoaPanel *panel)
static void
goa_panel_class_init (GoaPanelClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ object_class->finalize = goa_panel_finalize;
}
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]