mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
gtk: cast to application window
This commit is contained in:
@ -482,8 +482,8 @@ fn toggleCssClass(
|
||||
/// here. The string name binds them.
|
||||
fn initActions(self: *Window) void {
|
||||
// FIXME: when rest of file is converted to gobject
|
||||
const window: *gtk.Window = @ptrCast(@alignCast(self.window));
|
||||
const action_map = gobject.ext.cast(gio.ActionMap, window).?;
|
||||
const window: *gtk.ApplicationWindow = @ptrCast(@alignCast(self.window));
|
||||
const action_map = window.as(gio.ActionMap);
|
||||
const actions = .{
|
||||
.{ "about", gtkActionAbout },
|
||||
.{ "close", gtkActionClose },
|
||||
|
Reference in New Issue
Block a user