aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-11 22:33:30 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-11 22:33:30 +0800
commit983bdf7866b88fd9585197671d99a748a8683055 (patch)
treeb3a7c4f7145355a9fdebff194d713fc72070fc43
parentc4a806bea01fcb3862ab43e88eede77fca1ce7e0 (diff)
downloadgsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar.gz
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar.bz2
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar.lz
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar.xz
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.tar.zst
gsoc2013-empathy-983bdf7866b88fd9585197671d99a748a8683055.zip
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.
-rw-r--r--libempathy-gtk/empathy-account-chooser.c10
1 files changed, 9 insertions, 1 deletions
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