Fixes no-mailboxes-on-balsa-intialization
- From: Peter Williams <peter newton cx>
- To: balsa-list gnome org
- Subject: Fixes no-mailboxes-on-balsa-intialization
- Date: Thu, 7 Oct 1999 21:25:58 -0400 (EDT)
This will fix it so that when you start up balsa for the first time (with
the thing that should become a Druid...) you'll get mailboxes. It seems
the gnome-config implementation has different behavior for the function
config_mailbox_add. This also fixes a typo in balsa-init.c.
==============================
Peter Williams peter@newton.cx
--- balsa/src/balsa-init.c Sat Jul 31 15:23:15 1999
+++ balsa-new/src/balsa-init.c Thu Oct 7 21:20:22 1999
@@ -639,15 +642,17 @@
MAILBOX_LOCAL (mailbox)->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (prefs->inbox)));
config_mailbox_add (mailbox, "Inbox");
add_mailboxes_for_checking (mailbox);
- mailbox_free (mailbox);
+// mailbox_free (mailbox);
+ balsa_app.inbox = mailbox;
- type = mailbox_valid (gtk_entry_get_text (GTK_ENTRY (prefs->inbox)));
+ type = mailbox_valid (gtk_entry_get_text (GTK_ENTRY (prefs->outbox)));
mailbox = mailbox_new (type);
mailbox->name = g_strdup (_("Outbox"));
MAILBOX_LOCAL (mailbox)->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (prefs->outbox)));
config_mailbox_add (mailbox, "Outbox");
add_mailboxes_for_checking (mailbox);
- mailbox_free (mailbox);
+// mailbox_free (mailbox);
+ balsa_app.outbox = mailbox;
type = mailbox_valid (gtk_entry_get_text (GTK_ENTRY (prefs->sentbox)));
mailbox = mailbox_new (type);
@@ -655,7 +660,8 @@
MAILBOX_LOCAL (mailbox)->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (prefs->sentbox)));
config_mailbox_add (mailbox, "Sentbox");
add_mailboxes_for_checking (mailbox);
- mailbox_free (mailbox);
+// mailbox_free (mailbox);
+ balsa_app.sentbox = mailbox;
type = mailbox_valid (gtk_entry_get_text (GTK_ENTRY (prefs->draftbox)));
mailbox = mailbox_new (type);
@@ -663,7 +669,8 @@
MAILBOX_LOCAL (mailbox)->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (prefs->draftbox)));
config_mailbox_add (mailbox, "Draftbox");
add_mailboxes_for_checking (mailbox);
- mailbox_free (mailbox);
+// mailbox_free (mailbox);
+ balsa_app.draftbox = mailbox;
type = mailbox_valid (gtk_entry_get_text (GTK_ENTRY (prefs->trash)));
mailbox = mailbox_new (type);
@@ -671,7 +678,8 @@
MAILBOX_LOCAL (mailbox)->path = g_strdup (gtk_entry_get_text (GTK_ENTRY (prefs->trash)));
config_mailbox_add (mailbox, "Trash");
add_mailboxes_for_checking (mailbox);
- mailbox_free (mailbox);
+// mailbox_free (mailbox);
+ balsa_app.trash = mailbox;
config_global_save ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]