diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:48:13 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:48:13 +0800 |
commit | d9408a6d56ca75857a1f176c9f909e297168dfa5 (patch) | |
tree | e850945523a0072a46ba70f99b8cd4cfe1828843 /libempathy-gtk | |
parent | 9477559ddcd604d7d0687afa499694c4f3a2914f (diff) | |
download | gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar.gz gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar.bz2 gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar.lz gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar.xz gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.tar.zst gsoc2013-empathy-d9408a6d56ca75857a1f176c9f909e297168dfa5.zip |
Don't initialize private stuff in _new ().
svn path=/trunk/; revision=2067
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c index d716a8308..a3a5b837a 100644 --- a/libempathy-gtk/empathy-account-chooser.c +++ b/libempathy-gtk/empathy-account-chooser.c @@ -134,6 +134,20 @@ empathy_account_chooser_init (EmpathyAccountChooser *chooser) priv->set_active_item = FALSE; priv->filter = NULL; priv->filter_data = NULL; + + priv->manager = empathy_account_manager_new (); + + g_signal_connect (priv->manager, "account-created", + G_CALLBACK (account_chooser_account_created_cb), + chooser); + g_signal_connect (priv->manager, "account-deleted", + G_CALLBACK (account_chooser_account_deleted_cb), + chooser); + g_signal_connect (priv->manager, "account-connection-changed", + G_CALLBACK (account_chooser_connection_changed_cb), + chooser); + + account_chooser_setup (EMPATHY_ACCOUNT_CHOOSER (chooser)); } static void @@ -193,27 +207,10 @@ account_chooser_set_property (GObject *object, GtkWidget * empathy_account_chooser_new (void) { - EmpathyAccountChooserPriv *priv; GtkWidget *chooser; chooser = g_object_new (EMPATHY_TYPE_ACCOUNT_CHOOSER, NULL); - priv = GET_PRIV (chooser); - - priv->manager = empathy_account_manager_new (); - - g_signal_connect (priv->manager, "account-created", - G_CALLBACK (account_chooser_account_created_cb), - chooser); - g_signal_connect (priv->manager, "account-deleted", - G_CALLBACK (account_chooser_account_deleted_cb), - chooser); - g_signal_connect (priv->manager, "account-connection-changed", - G_CALLBACK (account_chooser_connection_changed_cb), - chooser); - - account_chooser_setup (EMPATHY_ACCOUNT_CHOOSER (chooser)); - return chooser; } |