mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
apprt/gtk: move new tab button to start of header bar (#3086)
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user