#include "imap_gtk.h"
#include "news_gtk.h"
#include "matcher.h"
+#ifdef HAVE_LIBETPAN
+#include "imap-thread.h"
+#endif
+#include "stock_pixmap.h"
#if USE_OPENSSL
# include "ssl.h"
gchar *userrc;
MainWindow *mainwin;
FolderView *folderview;
+ GdkPixbuf *icon;
if (!sylpheed_init(&argc, &argv)) {
return 0;
}
g_thread_init(NULL);
- gdk_threads_init();
+ /* gdk_threads_init(); */
gtk_set_locale();
gtk_init(&argc, &argv);
#endif
sock_set_io_timeout(prefs_common.io_timeout_secs);
-
+#ifdef HAVE_LIBETPAN
+ imap_main_set_timeout(prefs_common.io_timeout_secs);
+#endif
prefs_actions_read_config();
prefs_display_header_read_config();
/* prefs_filtering_read_config(); */
renderer_read_config();
gtkut_widget_init();
+ stock_pixbuf_gdk(NULL, STOCK_PIXMAP_SYLPHEED_ICON, &icon);
+ gtk_window_set_default_icon(icon);
folderview_initialize();
mh_gtk_init();
exit_sylpheed(mainwin);
}
+#ifdef HAVE_LIBETPAN
+ imap_main_init();
+#endif
account_set_missing_folder();
folder_set_missing_folders();
folderview_set(folderview);
gchar *filename;
debug_print("shutting down\n");
-
+#ifdef HAVE_LIBETPAN
+ imap_main_done();
+#endif
inc_autocheck_timer_remove();
if (prefs_common.clean_on_exit)