From 19e865124781fb25406a37f43a21b2028c294c67 Mon Sep 17 00:00:00 2001 From: Iain H Date: Mon, 23 Dec 2024 11:48:22 -0500 Subject: [PATCH] apprt/gtk: move new tab button to start of header bar According to the GNOME human interface guidelines, buttons for the main user actions, such as new, add, open, and back should be placed at the start of the header bar. (https://developer.gnome.org/hig/patterns/containers/header-bars.html#header-bar-buttons) Moving the new tab button to the start of the header bar brings Ghostty in line with other GNOME applications such as gedit and gnome-terminal. --- src/apprt/gtk/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apprt/gtk/Window.zig b/src/apprt/gtk/Window.zig index 0f6a14c8c..48e88e491 100644 --- a/src/apprt/gtk/Window.zig +++ b/src/apprt/gtk/Window.zig @@ -200,7 +200,7 @@ pub fn init(self: *Window, app: *App) !void { const btn = c.gtk_button_new_from_icon_name("tab-new-symbolic"); c.gtk_widget_set_tooltip_text(btn, "New Tab"); _ = c.g_signal_connect_data(btn, "clicked", c.G_CALLBACK(>kTabNewClick), self, null, c.G_CONNECT_DEFAULT); - header.packEnd(btn); + header.packStart(btn); } self.header = header;