Merge pull request #1619 from ianic/close-icon

gtk: use symbolic icon for tab close
This commit is contained in:
Mitchell Hashimoto
2024-03-27 13:39:41 -07:00
committed by GitHub

View File

@ -64,7 +64,7 @@ pub fn init(self: *Tab, window: *Window, parent_: ?*CoreSurface) !void {
self.label_text = label_text;
// Build the close button for the tab
const label_close_widget = c.gtk_button_new_from_icon_name("window-close");
const label_close_widget = c.gtk_button_new_from_icon_name("window-close-symbolic");
const label_close: *c.GtkButton = @ptrCast(label_close_widget);
c.gtk_button_set_has_frame(label_close, 0);
c.gtk_box_append(label_box, label_close_widget);