0.9.4claws47
[claws.git] / src / folder_item_prefs.c
index d60d0e9575ecc08bbfc767443dc4284cff3d7d22..595887f7709063654cce6253efa9b9ba985368f5 100644 (file)
@@ -80,6 +80,12 @@ 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,
@@ -170,6 +176,10 @@ 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;
 
@@ -262,6 +272,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;