[empathy] account-chooser: setup the combobox once the object has been constructed (#639214)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] account-chooser: setup the combobox once the object has been constructed (#639214)
- Date: Tue, 11 Jan 2011 14:40:57 +0000 (UTC)
commit 983bdf7866b88fd9585197671d99a748a8683055
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jan 11 15:33:30 2011 +0100
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 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 809c293..10ca143 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]