Fix startup initialization.

[GB.GTK3]
* BUG: Fix startup initialization.
This commit is contained in:
gambas 2021-07-23 23:52:15 +02:00
parent 84443eafd9
commit 46cdd482dc

View file

@ -464,11 +464,13 @@ static void hook_main(int *argc, char ***argv)
fprintf(stderr, "gb.gtk3: warning: unknown platform: %s\n", env);
}
gApplication::init(argc, argv);
gtk_init(argc, argv);
load_platform();
PLATFORM.Init();
gApplication::init(argc, argv);
gApplication::setDefaultTitle(GB.Application.Title());
gDesktop::init();