+ ModestHildon2WindowMgrPrivate *priv;
+
+ priv = MODEST_HILDON2_WINDOW_MGR_GET_PRIVATE (self);
+
+ /* Connect to the account store "account-removed" signal". We
+ do this here because in the init the singletons are still
+ not initialized properly */
+ if (!g_signal_handler_is_connected (modest_runtime_get_account_store (),
+ priv->accounts_handler)) {
+ priv->accounts_handler = g_signal_connect (modest_runtime_get_account_store (),
+ "account-removed",
+ G_CALLBACK (on_account_removed),
+ self);
+ }