init gtk app

This commit is contained in:
Mitchell Hashimoto
2023-02-21 08:20:13 -08:00
parent 48c9c65915
commit f268f3955e
5 changed files with 110 additions and 15 deletions

View File

@@ -101,9 +101,9 @@ pub fn main() !void {
// Run our app with a single initial window to start.
var app = try App.create(alloc, .{}, &config);
defer app.destroy();
try app.run();
if (build_config.app_runtime == .gtk) return;
_ = try app.newWindow(.{});
try app.run();
}
// Required by tracy/tracy.zig to enable/disable tracy support.