+ priv->sighandlers =
+ modest_signal_mgr_connect (priv->sighandlers,
+ G_OBJECT (priv->account_view), "row-activated",
+ G_CALLBACK (on_account_activated), self);
+
+ priv->sighandlers =
+ modest_signal_mgr_connect (priv->sighandlers,
+ G_OBJECT (modest_runtime_get_window_mgr ()),
+ "progress-list-changed",
+ G_CALLBACK (on_progress_list_changed), self);
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->account_view));
+
+ priv->sighandlers =
+ modest_signal_mgr_connect (priv->sighandlers,
+ G_OBJECT (model),
+ "row-inserted",
+ G_CALLBACK (on_row_inserted), self);
+
+ priv->sighandlers =
+ modest_signal_mgr_connect (priv->sighandlers,
+ G_OBJECT (model),
+ "row-deleted",
+ G_CALLBACK (on_row_deleted), self);
+
+ priv->sighandlers =
+ modest_signal_mgr_connect (priv->sighandlers,
+ G_OBJECT (priv->new_message_button),
+ "clicked",
+ G_CALLBACK (modest_ui_actions_on_new_msg), self);
+
+ /* we don't register this in sighandlers, as it should be run
+ * after disconnecting all signals, in destroy stage */
+
+
+ g_signal_connect(G_OBJECT(self), "key-press-event",
+ G_CALLBACK(on_key_press), self);
+}
+
+static ModestWindow *
+modest_accounts_window_new_real (void)
+{
+ ModestAccountsWindow *self = NULL;
+ ModestAccountsWindowPrivate *priv = NULL;
+ GdkPixbuf *window_icon;
+ GdkPixbuf *new_message_pixbuf;
+ guint accel_key;
+ GdkModifierType accel_mods;
+ GtkAccelGroup *accel_group;
+ GtkWidget *no_accounts_label;
+ GtkWidget *empty_view_new_message_button;
+ GtkWidget *box_alignment;
+
+ self = MODEST_ACCOUNTS_WINDOW(g_object_new(MODEST_TYPE_ACCOUNTS_WINDOW, NULL));
+ priv = MODEST_ACCOUNTS_WINDOW_GET_PRIVATE(self);