commit errata - fix the name of the enable_processing option
[claws.git] / src / folder_item_prefs.c
index d60d0e9575ecc08bbfc767443dc4284cff3d7d22..47fdece964142a0874ad218d6310ae3f9773955d 100644 (file)
@@ -80,10 +80,18 @@ static PrefParam param[] = {
         NULL, NULL, NULL},
        {"default_account", NULL, &tmp_prefs.default_account, P_INT,
         NULL, NULL, NULL},
+#if USE_ASPELL
+       {"enable_default_dictionary", "", &tmp_prefs.enable_default_dictionary, P_BOOL,
+        NULL, NULL, NULL},
+       {"default_dictionary", NULL, &tmp_prefs.default_dictionary, P_STRING,
+        NULL, NULL, NULL},
+#endif  
        {"save_copy_to_folder", NULL, &tmp_prefs.save_copy_to_folder, P_BOOL,
         NULL, NULL, NULL},
        {"folder_color", "", &tmp_prefs.color, P_INT,
         NULL, NULL, NULL},
+       {"enable_processing", "TRUE", &tmp_prefs.enable_processing, P_BOOL,
+        NULL, NULL, NULL},
        {NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
 };
 
@@ -170,9 +178,14 @@ static FolderItemPrefs *folder_item_prefs_clear(FolderItemPrefs *prefs)
        prefs->folder_chmod = 0;
        prefs->enable_default_account = FALSE;
        prefs->default_account = 0;
+#if USE_ASPELL
+       prefs->enable_default_dictionary = FALSE;
+       prefs->default_dictionary = NULL;
+#endif
        prefs->save_copy_to_folder = FALSE;
        prefs->color = 0;
 
+        prefs->enable_processing = TRUE;
        prefs->scoring = NULL;
        prefs->processing = NULL;
        return prefs;
@@ -231,6 +244,7 @@ void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest)
        tmp_prefs.enable_thread                 = src->prefs->enable_thread;
        tmp_prefs.kill_score                    = src->prefs->kill_score;
        tmp_prefs.important_score               = src->prefs->important_score;
+        tmp_prefs.enable_processing             = src->prefs->enable_processing;
 
        prefs_matcher_read_config();
        for (tmp = src->prefs->scoring; tmp != NULL && tmp->data != NULL;) {
@@ -262,6 +276,10 @@ void folder_item_prefs_copy_prefs(FolderItem * src, FolderItem * dest)
        tmp_prefs.folder_chmod                  = src->prefs->folder_chmod;
        tmp_prefs.enable_default_account        = src->prefs->enable_default_account;
        tmp_prefs.default_account               = src->prefs->default_account;
+#if USE_ASPELL
+       tmp_prefs.enable_default_dictionary     = src->prefs->enable_default_dictionary;
+       tmp_prefs.default_dictionary            = g_strdup(src->prefs->default_dictionary);
+#endif
        tmp_prefs.save_copy_to_folder           = src->prefs->save_copy_to_folder;
        tmp_prefs.color                         = src->prefs->color;