mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
apprt/gtk-ng: new window menu action
Not sure why I skipped this one, its super easy.
This commit is contained in:
@ -178,6 +178,7 @@ pub const Window = extern struct {
|
|||||||
const actions = .{
|
const actions = .{
|
||||||
.{ "about", actionAbout, null },
|
.{ "about", actionAbout, null },
|
||||||
.{ "close", actionClose, null },
|
.{ "close", actionClose, null },
|
||||||
|
.{ "new-window", actionNewWindow, null },
|
||||||
.{ "copy", actionCopy, null },
|
.{ "copy", actionCopy, null },
|
||||||
.{ "paste", actionPaste, null },
|
.{ "paste", actionPaste, null },
|
||||||
.{ "reset", actionReset, null },
|
.{ "reset", actionReset, null },
|
||||||
@ -468,6 +469,14 @@ pub const Window = extern struct {
|
|||||||
self.as(gtk.Window).close();
|
self.as(gtk.Window).close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn actionNewWindow(
|
||||||
|
_: *gio.SimpleAction,
|
||||||
|
_: ?*glib.Variant,
|
||||||
|
self: *Window,
|
||||||
|
) callconv(.c) void {
|
||||||
|
self.performBindingAction(.new_window);
|
||||||
|
}
|
||||||
|
|
||||||
fn actionCopy(
|
fn actionCopy(
|
||||||
_: *gio.SimpleAction,
|
_: *gio.SimpleAction,
|
||||||
_: ?*glib.Variant,
|
_: ?*glib.Variant,
|
||||||
|
Reference in New Issue
Block a user