Move timer initialisation for scheduler so netsurf_init can queue scheduled events.

svn path=/trunk/netsurf/; revision=12033
This commit is contained in:
Chris Young 2011-03-13 19:26:16 +00:00
parent 9017a03330
commit d3b8961017

View File

@ -299,8 +299,6 @@ void ami_open_resources(void)
urlStringClass = MakeStringClass(); urlStringClass = MakeStringClass();
ami_schedule_open_timer();
if(!(appport = AllocSysObjectTags(ASOT_PORT, if(!(appport = AllocSysObjectTags(ASOT_PORT,
ASO_NoTrack,FALSE, ASO_NoTrack,FALSE,
TAG_DONE))) die(messages_get("NoMemory")); TAG_DONE))) die(messages_get("NoMemory"));
@ -496,7 +494,6 @@ void gui_init(int argc, char** argv)
plot=amiplot; plot=amiplot;
if(option_context_menu) ami_context_menu_init(); if(option_context_menu) ami_context_menu_init();
ami_schedule_create();
window_list = NewObjList(); window_list = NewObjList();
@ -753,6 +750,9 @@ int main(int argc, char** argv)
if(ami_locate_resource(messages, "Messages") == false) if(ami_locate_resource(messages, "Messages") == false)
die("Cannot open Messages file"); die("Cannot open Messages file");
ami_schedule_open_timer();
ami_schedule_create();
netsurf_init(&argc, &argv, "PROGDIR:Resources/Options", messages); netsurf_init(&argc, &argv, "PROGDIR:Resources/Options", messages);
gui_init(argc, argv); gui_init(argc, argv);