gtk: fix tab settings after introducing *Tab

This commit is contained in:
Thorsten Ball
2023-10-26 20:22:38 +02:00
committed by Mitchell Hashimoto
parent 790cd84203
commit a7717289eb

View File

@ -123,8 +123,8 @@ pub fn init(self: *Tab, window: *Window, parent_: ?*CoreSurface) !void {
}
// Tab settings
c.gtk_notebook_set_tab_reorderable(window.notebook, gl_area, 1);
c.gtk_notebook_set_tab_detachable(window.notebook, gl_area, 1);
c.gtk_notebook_set_tab_reorderable(window.notebook, box_widget, 1);
c.gtk_notebook_set_tab_detachable(window.notebook, box_widget, 1);
// If we have multiple tabs, show the tab bar.
if (c.gtk_notebook_get_n_pages(window.notebook) > 1) {