typedef struct _ModestEasysetupWizardDialogPrivate ModestEasysetupWizardDialogPrivate;
-/* global to make sure there is only one of this
- * dialog at any time
- */
-static ModestEasysetupWizardDialog *_instance = NULL;
typedef enum {
MODEST_EASYSETUP_WIZARD_DIALOG_INCOMING_CHANGED = 0x01,
g_free (self->saved_account_name);
G_OBJECT_CLASS (modest_easysetup_wizard_dialog_parent_class)->finalize (object);
-
- _instance = NULL;
}
static void
}
ModestEasysetupWizardDialog*
-modest_easysetup_wizard_dialog_new_or_present (void)
+modest_easysetup_wizard_dialog_new (void)
{
- if (_instance) {
- g_message ("%s: already instantiated; presenting\n",
- __FUNCTION__);
- gtk_window_present (GTK_WINDOW(_instance));
- return NULL;
- }
- return _instance = g_object_new (MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, NULL);
+ return g_object_new (MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, NULL);
}
static void create_subsequent_customsetup_pages (ModestEasysetupWizardDialog *self)