move External Program prefs to Other Prefs
[claws.git] / src / main.c
index 033d1c3cedaf5b4b791d1f2a43950516f07d9e07..9f0a75c0f6838ef789abaeaa69fc1f67448f2240 100644 (file)
 #include "prefs_common.h"
 #include "prefs_account.h"
 #include "prefs_actions.h"
+#include "prefs_ext_prog.h"
 #include "prefs_fonts.h"
 #include "prefs_spelling.h"
+#include "prefs_themes.h"
 #include "prefs_display_header.h"
 #include "account.h"
 #include "procmsg.h"
@@ -250,7 +252,8 @@ int main(int argc, char *argv[])
        sgpgme_init();
        pgpmime_init();
 #endif
-
+       prefs_ext_prog_init();
+       prefs_themes_init();
        prefs_fonts_init();
 #ifdef USE_ASPELL
        gtkaspell_checkers_init();
@@ -368,7 +371,7 @@ static void save_all_caches(FolderItem *item, gpointer data)
 static void exit_sylpheed(MainWindow *mainwin)
 {
        gchar *filename;
-       GList *list;
+       GList *list, *cur;
 
        debug_print("shutting down\n");
 
@@ -389,11 +392,6 @@ static void exit_sylpheed(MainWindow *mainwin)
        /* save all state before exiting */
        folder_write_list();
        folder_func_to_all_folders(save_all_caches, NULL);
-       for (list = folder_get_list(); list != NULL; list = g_list_next(list)) {
-               Folder *folder = FOLDER(list->data);
-
-               folder_tree_destroy(folder);
-       }
 
        main_window_get_size(mainwin);
        main_window_get_position(mainwin);
@@ -428,7 +426,8 @@ static void exit_sylpheed(MainWindow *mainwin)
        pgpmime_done();
        sgpgme_done();
 #endif
-
+       prefs_ext_prog_done();
+       prefs_themes_done();
        prefs_fonts_done();
 #ifdef USE_ASPELL       
        prefs_spelling_done();