gtk: clean up title renaming and fix a small leak

This commit is contained in:
Jeffrey C. Ollie
2026-02-24 10:28:33 -06:00
parent d0e308f32b
commit 57d570525b
5 changed files with 17 additions and 7 deletions

View File

@@ -570,12 +570,9 @@ pub const Action = union(enum) {
toggle_tab_overview,
/// Change the title of the current focused surface via a pop-up prompt.
///
/// This requires libadwaita 1.5 or newer on Linux. The current libadwaita
/// version can be found by running `ghostty +version`.
prompt_surface_title,
/// Change the title of the current tab/window via a pop-up prompt. The
/// Change the title of the current tab via a pop-up prompt. The
/// title set via this prompt overrides any title set by the terminal
/// and persists across focus changes within the tab.
prompt_tab_title,

View File

@@ -440,13 +440,13 @@ fn actionCommands(action: Action.Key) []const Command {
.prompt_surface_title => comptime &.{.{
.action = .prompt_surface_title,
.title = "Change Terminal Title...",
.title = "Change Terminal Title",
.description = "Prompt for a new title for the current terminal.",
}},
.prompt_tab_title => comptime &.{.{
.action = .prompt_tab_title,
.title = "Change Tab Title...",
.title = "Change Tab Title",
.description = "Prompt for a new title for the current tab.",
}},