mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
apprt/gtk: fix build
This commit is contained in:
@ -489,7 +489,6 @@ pub fn performAction(
|
|||||||
.render_inspector,
|
.render_inspector,
|
||||||
.renderer_health,
|
.renderer_health,
|
||||||
.color_change,
|
.color_change,
|
||||||
.config_change,
|
|
||||||
=> log.warn("unimplemented action={}", .{action}),
|
=> log.warn("unimplemented action={}", .{action}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -834,7 +833,7 @@ fn configChange(self: *App, new_config: *const Config) void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn reloadConfig(
|
pub fn reloadConfig(
|
||||||
self: *App,
|
self: *App,
|
||||||
target: apprt.action.Target,
|
target: apprt.action.Target,
|
||||||
opts: apprt.action.ReloadConfig,
|
opts: apprt.action.ReloadConfig,
|
||||||
@ -1430,7 +1429,7 @@ fn gtkActionReloadConfig(
|
|||||||
) callconv(.C) void {
|
) callconv(.C) void {
|
||||||
const self: *App = @ptrCast(@alignCast(ud orelse return));
|
const self: *App = @ptrCast(@alignCast(ud orelse return));
|
||||||
self.reloadConfig(.app, .{}) catch |err| {
|
self.reloadConfig(.app, .{}) catch |err| {
|
||||||
log.err("error reloading configuration: {s}", .{err});
|
log.err("error reloading configuration: {}", .{err});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ const ButtonsView = struct {
|
|||||||
|
|
||||||
fn gtkReloadClick(_: *c.GtkWidget, ud: ?*anyopaque) callconv(.C) void {
|
fn gtkReloadClick(_: *c.GtkWidget, ud: ?*anyopaque) callconv(.C) void {
|
||||||
const self: *ConfigErrors = @ptrCast(@alignCast(ud));
|
const self: *ConfigErrors = @ptrCast(@alignCast(ud));
|
||||||
_ = self.app.reloadConfig(.app, .{}) catch |err| {
|
self.app.reloadConfig(.app, .{}) catch |err| {
|
||||||
log.warn("error reloading config error={}", .{err});
|
log.warn("error reloading config error={}", .{err});
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user