From 983bdf7866b88fd9585197671d99a748a8683055 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 11 Jan 2011 15:33:30 +0100 Subject: account-chooser: setup the combobox once the object has been constructed (#639214) See bgo #639139 for details, but basically that's because the cell_area is now created in a constructor instead of an init function. --- libempathy-gtk/empathy-account-chooser.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index 809c2933a..10ca143d2 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -123,6 +123,7 @@ enum { COL_ACCOUNT_COUNT }; +static void account_chooser_constructed (GObject *object); static void account_chooser_finalize (GObject *object); static void account_chooser_get_property (GObject *object, guint param_id, @@ -180,6 +181,7 @@ empathy_account_chooser_class_init (EmpathyAccountChooserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + object_class->constructed = account_chooser_constructed; object_class->finalize = account_chooser_finalize; object_class->get_property = account_chooser_get_property; object_class->set_property = account_chooser_set_property; @@ -230,8 +232,14 @@ empathy_account_chooser_init (EmpathyAccountChooser *chooser) g_signal_connect (priv->manager, "account-removed", G_CALLBACK (account_chooser_account_removed_cb), chooser); +} + +static void +account_chooser_constructed (GObject *object) +{ + EmpathyAccountChooser *self = (EmpathyAccountChooser *) object; - account_chooser_setup (EMPATHY_ACCOUNT_CHOOSER (chooser)); + account_chooser_setup (self); } static void -- cgit v1.2.3