gtk: fix compilation error after rebase

This commit is contained in:
Thorsten Ball
2023-11-18 14:11:57 +01:00
committed by Mitchell Hashimoto
parent ec2aa8e322
commit 956fcf7349

View File

@ -84,13 +84,13 @@ pub fn init(self: *Tab, window: *Window, parent_: ?*CoreSurface) !void {
// This ensures that tabs are always equal width. If they're too
// long, they'll be truncated with an ellipsis.
c.gtk_label_set_max_width_chars(@ptrCast(label_text), 1);
c.gtk_label_set_ellipsize(@ptrCast(label_text), c.PANGO_ELLIPSIZE_END);
c.gtk_label_set_max_width_chars(label_text, 1);
c.gtk_label_set_ellipsize(label_text, c.PANGO_ELLIPSIZE_END);
// We need to set a minimum width so that at a certain point
// the notebook will have an arrow button rather than shrinking tabs
// to an unreadably small size.
c.gtk_widget_set_size_request(@ptrCast(label_text), 100, 1);
c.gtk_widget_set_size_request(label_text_widget, 100, 1);
}
// Create a Box in which we'll later keep either Surface or Paned