2007-06-06 Murray Cumming <murrayc@murrayc.com>
+ * src/maemo/easysetup/modest-easysetup-wizard.c:
+ (create_account): Correct the position of the gconf sanity check warning.
+ (on_button_edit_advanced_settings): Show the dialog immediately, instead
+ of using the g_idle_add() hack, because this does not seem to be necessary
+ on osso 1.1. It might even work on Maemo Bora if the problems were actually
+ caused by something other than maemo's gconf.
+ This fixes projects.maemo.org bug #59022.
+
+2007-06-06 Murray Cumming <murrayc@murrayc.com>
+
* src/modest-account-mgr-helpers.c:
(modest_account_mgr_get_default_account): Do not check that the account
exists if there is no default account (NULL), to fix a runtime warning.
}
static gboolean
-on_timeout_show_advanced_edit(gpointer user_data)
+show_advanced_edit(gpointer user_data)
{
ModestEasysetupWizardDialog * self = MODEST_EASYSETUP_WIZARD_DIALOG (user_data);
gtk_dialog_run (GTK_DIALOG (dialog));
- /* TODO: The hide() is not necessary.
- * It is just here to show that it doesn't work,
- * just as destroy doesn't work.
- */
- gtk_widget_hide (GTK_WIDGET(dialog));
-
- /* TODO: The dialog remains on screen, not allowing any interaction.
- * But gtk_widget_destroy() should always destroy.
- */
- printf("debug: destroying settings dialog\n");
gtk_widget_destroy (GTK_WIDGET (dialog));
- printf("debug: after destroying settings dialog (doesn't seem to work).\n");
return FALSE; /* Do not call this timeout callback again. */
}
* This account will be deleted if Finish is never actually clicked. */
gboolean saved = TRUE;
- gboolean was_already_saved = TRUE;
if (!(self->saved_account_name)) {
saved = create_account (self, FALSE);
- was_already_saved = FALSE;
}
if (!saved)
return;
/* Show the Account Settings window: */
- if (was_already_saved) {
- /* Just show the dialog immediately: */
- on_timeout_show_advanced_edit(self);
- }
- else
- {
- printf ("debug: waiting for gconf to update its local cache. "
- "This is a hack to work around a maemo gconf bug in maemo bora.\n");
-
- g_timeout_add (5000, on_timeout_show_advanced_edit, self);
- }
+ show_advanced_edit(self);
}
static GtkWidget* create_page_complete_custom (ModestEasysetupWizardDialog *self)
{
return FALSE;
}
- /* Sanity check: */
- /* There must be at least one account now: */
- /* Note, when this fails is is caused by a Maemo gconf bug that has been
- * fixed in versions after 3.1. */
- GSList *account_names = modest_account_mgr_account_names (self->account_manager, FALSE);
- if(!account_names)
- {
- g_warning ("modest_account_mgr_account_names() returned NULL after adding an account.");
- }
- g_slist_free (account_names);
-
-
/* Outgoing server: */
gchar* servername_outgoing = NULL;
ModestTransportStoreProtocol protocol_outgoing = MODEST_PROTOCOL_STORE_POP;
show_error (GTK_WINDOW (self), _("An error occurred while creating the account."));
return FALSE;
}
+
+
+ /* Sanity check: */
+ /* There must be at least one account now: */
+ /* Note, when this fails is is caused by a Maemo gconf bug that has been
+ * fixed in versions after 3.1. */
+ GSList *account_names = modest_account_mgr_account_names (self->account_manager, FALSE);
+ if(!account_names)
+ {
+ g_warning ("modest_account_mgr_account_names() returned NULL after adding an account.");
+ }
+ g_slist_free (account_names);
+
+
/* The user name and email address must be set additionally: */
const gchar* user_name = gtk_entry_get_text (GTK_ENTRY (self->entry_user_name));