empathy r2067 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2067 - trunk/libempathy-gtk
- Date: Tue, 6 Jan 2009 16:48:13 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:48:13 2009
New Revision: 2067
URL: http://svn.gnome.org/viewvc/empathy?rev=2067&view=rev
Log:
Don't initialize private stuff in _new ().
Modified:
trunk/libempathy-gtk/empathy-account-chooser.c
Modified: trunk/libempathy-gtk/empathy-account-chooser.c
==============================================================================
--- trunk/libempathy-gtk/empathy-account-chooser.c (original)
+++ trunk/libempathy-gtk/empathy-account-chooser.c Tue Jan 6 16:48:13 2009
@@ -134,6 +134,20 @@
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 @@
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]