mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
application.library fix for new SDK. Note that:
* application.library functionality will no longer be available on OS4.0, however that only extends to the Docky icon as notifications weren't supported anyway. * CI builds may crash until the toolchain is updated.
This commit is contained in:
parent
4cc0d9c233
commit
af2c37167b
12
amiga/gui.c
12
amiga/gui.c
@ -383,9 +383,8 @@ void ami_open_resources(void)
|
||||
IKeymap = (struct KeymapIFace *)GetInterface(KeymapBase,"main",1,NULL);
|
||||
}
|
||||
|
||||
if(ApplicationBase = OpenLibrary("application.library",50))
|
||||
{
|
||||
IApplication = (struct ApplicationIFace *)GetInterface(ApplicationBase,"application",1,NULL);
|
||||
if(ApplicationBase = OpenLibrary("application.library", 53)) {
|
||||
IApplication = (struct ApplicationIFace *)GetInterface(ApplicationBase, "application", 2, NULL);
|
||||
}
|
||||
|
||||
urlStringClass = MakeStringClass();
|
||||
@ -938,9 +937,6 @@ static void gui_init2(int argc, char** argv)
|
||||
|
||||
if(IApplication)
|
||||
{
|
||||
ULONG desc = REGAPP_Description;
|
||||
if(ApplicationBase->lib_Version < 53) desc = TAG_IGNORE;
|
||||
|
||||
if(argc == 0)
|
||||
{
|
||||
ULONG noicon = TAG_IGNORE;
|
||||
@ -955,7 +951,7 @@ static void gui_init2(int argc, char** argv)
|
||||
REGAPP_HasPrefsWindow, TRUE,
|
||||
REGAPP_CanCreateNewDocs, TRUE,
|
||||
REGAPP_UniqueApplication, TRUE,
|
||||
desc, messages_get("NetSurfDesc"),
|
||||
REGAPP_Description, messages_get("NetSurfDesc"),
|
||||
TAG_DONE);
|
||||
}
|
||||
else
|
||||
@ -968,7 +964,7 @@ static void gui_init2(int argc, char** argv)
|
||||
REGAPP_HasPrefsWindow, TRUE,
|
||||
REGAPP_CanCreateNewDocs, TRUE,
|
||||
REGAPP_UniqueApplication, TRUE,
|
||||
desc, messages_get("NetSurfDesc"),
|
||||
REGAPP_Description, messages_get("NetSurfDesc"),
|
||||
TAG_DONE);
|
||||
}
|
||||
|
||||
|
@ -1309,6 +1309,9 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
|
||||
atrr_data->height = height;
|
||||
atrr_data->twin = (struct treeview_window *)data;
|
||||
|
||||
/**TODO: Queue these requests properly like the main browser code does
|
||||
**/
|
||||
|
||||
schedule(0, ami_tree_redraw_req, atrr_data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user