gtk: cast to application window
parent
d284146621
commit
3d08b1c4aa
|
|
@ -482,8 +482,8 @@ fn toggleCssClass(
|
||||||
/// here. The string name binds them.
|
/// here. The string name binds them.
|
||||||
fn initActions(self: *Window) void {
|
fn initActions(self: *Window) void {
|
||||||
// FIXME: when rest of file is converted to gobject
|
// FIXME: when rest of file is converted to gobject
|
||||||
const window: *gtk.Window = @ptrCast(@alignCast(self.window));
|
const window: *gtk.ApplicationWindow = @ptrCast(@alignCast(self.window));
|
||||||
const action_map = gobject.ext.cast(gio.ActionMap, window).?;
|
const action_map = window.as(gio.ActionMap);
|
||||||
const actions = .{
|
const actions = .{
|
||||||
.{ "about", gtkActionAbout },
|
.{ "about", gtkActionAbout },
|
||||||
.{ "close", gtkActionClose },
|
.{ "close", gtkActionClose },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue