GNOME Bugzilla – Bug 675457
GtkNotebook is missing homogeneous option
Last modified: 2018-04-15 00:30:39 UTC
For some reason gtk_notebook_set_homogeneous_tabs was deprecated in GTK2 and removed in GTK3. This is causing problems for me in roxterm, which uses multiple tabs rather like gnome-terminal, but with a subtle difference: when a roxterm window contains only one terminal the tab bar is still visible, with one tab taking approximately 40% of the window width. This still works correctly when the content of each tab label is in a GtkBox (holding the label and a close button), but that's deprecated in favour of GtkGrid. I can't get roxterm to behave the same way with a Grid as with a Box. Depending on how I use the "hexpand" child property I always have at least one of these problems: 1. When there's one terminal in a window its tab takes up the entire window width (ugly). 2. When there is more than one tab the first hogs as much space as possible, leaving the rest with tiny tabs only containing room for a fully ellipsized label. I think this could be avoided if GtkNotebook still had an enforced homogeneous mode like it used to. 3. The size of the tabs themselves is fine, but the close buttons are left-aligned next to the label instead of aligned to the right-hand edge of the tab. This is also ugly. Setting halign makes no difference, probably because hexpand is false for the buttons.
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new