+
+
+
+const gchar*
+modest_window_get_active_account (ModestWindow *self)
+{
+ g_return_val_if_fail (self, NULL);
+
+ return MODEST_WINDOW_GET_PRIVATE(self)->active_account;
+}
+
+void
+modest_window_set_active_account (ModestWindow *self, const gchar *active_account)
+{
+ ModestWindowPrivate *priv;
+
+ priv = MODEST_WINDOW_GET_PRIVATE(self);
+
+ if (active_account == priv->active_account)
+ return;
+ else {
+ g_free (priv->active_account);
+ priv->active_account = g_strdup (active_account);
+ }
+}