apprt/gtk: config errors is not an application window

This commit is contained in:
Mitchell Hashimoto
2023-09-18 11:24:19 -07:00
parent 008738df56
commit 4606d56dc0

View File

@ -47,7 +47,7 @@ fn destroy(self: *ConfigErrors) void {
fn init(self: *ConfigErrors, app: *App) !void { fn init(self: *ConfigErrors, app: *App) !void {
// Create the window // Create the window
const window = c.gtk_application_window_new(app.app); const window = c.gtk_window_new();
const gtk_window: *c.GtkWindow = @ptrCast(window); const gtk_window: *c.GtkWindow = @ptrCast(window);
errdefer c.gtk_window_destroy(gtk_window); errdefer c.gtk_window_destroy(gtk_window);
c.gtk_window_set_title(gtk_window, "Configuration Errors"); c.gtk_window_set_title(gtk_window, "Configuration Errors");