if (mainwin->lock_count)
return TRUE;
- g_print("doing deferred folderview_set now\n");
+ debug_print("doing deferred folderview_set now\n");
folderview_set(folderview);
folderview->deferred_refresh_id = -1;
if (folderview->deferred_refresh_id == -1)
folderview->deferred_refresh_id =
g_timeout_add(500, folderview_defer_set, folderview);
- g_print("deferred folderview_set\n");
+ debug_print("deferred folderview_set\n");
return;
}
g_usleep(50000);
}
+static gboolean sc_starting = FALSE;
+
static gboolean defer_check_all(void *data)
{
gboolean autochk = GPOINTER_TO_INT(data);
inc_all_account_mail(static_mainwindow, autochk,
prefs_common.newmail_notify_manu);
+ if (sc_starting) {
+ sc_starting = FALSE;
+ main_window_set_menu_sensitive(static_mainwindow);
+ toolbar_main_set_sensitive(static_mainwindow);
+ }
return FALSE;
}
{
inc_mail(static_mainwindow, prefs_common.newmail_notify_manu);
+ if (sc_starting) {
+ sc_starting = FALSE;
+ main_window_set_menu_sensitive(static_mainwindow);
+ toolbar_main_set_sensitive(static_mainwindow);
+ }
return FALSE;
}
defer_check(NULL);
}
mainwindow_jump_to(data, FALSE);
+ if (sc_starting) {
+ sc_starting = FALSE;
+ main_window_set_menu_sensitive(static_mainwindow);
+ toolbar_main_set_sensitive(static_mainwindow);
+ }
return FALSE;
}
#endif
static gboolean sc_exiting = FALSE;
-static gboolean sc_starting = FALSE;
static gboolean show_at_startup = TRUE;
static gboolean claws_crashed_bool = FALSE;
gboolean crash_file_present = FALSE;
gint num_folder_class = 0;
gboolean asked_for_migration = FALSE;
+ gboolean start_done = TRUE;
START_TIMING("startup");
}
if (cmd.receive_all && !cmd.target) {
+ start_done = FALSE;
g_timeout_add(1000, defer_check_all, GINT_TO_POINTER(FALSE));
} else if (prefs_common.chk_on_startup && !cmd.target) {
+ start_done = FALSE;
g_timeout_add(1000, defer_check_all, GINT_TO_POINTER(TRUE));
} else if (cmd.receive && !cmd.target) {
+ start_done = FALSE;
g_timeout_add(1000, defer_check, NULL);
} else {
gtk_widget_grab_focus(folderview->ctree);
}
if (cmd.target) {
+ start_done = FALSE;
g_timeout_add(500, defer_jump, (gpointer)cmd.target);
}
compose_reopen_exit_drafts();
- sc_starting = FALSE;
+ if (start_done) {
+ sc_starting = FALSE;
+ main_window_set_menu_sensitive(mainwin);
+ toolbar_main_set_sensitive(mainwin);
+ }
END_TIMING();
gtk_main();