mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #2233 from tristan957/about
apprt/gtk: use AdwAboutDialog if available
This commit is contained in:
@ -537,20 +537,43 @@ fn gtkActionAbout(
|
||||
) callconv(.C) void {
|
||||
const self: *Window = @ptrCast(@alignCast(ud orelse return));
|
||||
|
||||
const name = "Ghostty";
|
||||
const icon = "com.mitchellh.ghostty";
|
||||
const website = "https://github.com/ghostty-org/ghostty";
|
||||
|
||||
if (self.isAdwWindow()) {
|
||||
c.adw_show_about_dialog(
|
||||
@ptrCast(self.window),
|
||||
"application-name",
|
||||
name,
|
||||
"developer-name",
|
||||
"Ghostty Developers",
|
||||
"application-icon",
|
||||
icon,
|
||||
"version",
|
||||
build_config.version_string.ptr,
|
||||
"issue-url",
|
||||
"https://github.com/ghostty-org/ghostty/issues",
|
||||
"website",
|
||||
website,
|
||||
@as(?*anyopaque, null),
|
||||
);
|
||||
} else {
|
||||
c.gtk_show_about_dialog(
|
||||
self.window,
|
||||
"program-name",
|
||||
"Ghostty",
|
||||
name,
|
||||
"logo-icon-name",
|
||||
"com.mitchellh.ghostty",
|
||||
icon,
|
||||
"title",
|
||||
"About Ghostty",
|
||||
"version",
|
||||
build_config.version_string.ptr,
|
||||
"website",
|
||||
"https://github.com/ghostty-org/ghostty",
|
||||
website,
|
||||
@as(?*anyopaque, null),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn gtkActionClose(
|
||||
|
Reference in New Issue
Block a user