GNOME Bugzilla – Bug 722340
GtkHeaderBar: The size of a custom title which is hidden taken into consideration
Last modified: 2014-01-18 00:50:17 UTC
We need a way to ignore the title, to take the space to other
controls in the sides.
I try this with set a custom title and hide it, but the size of it
taken into consideration like it shown.
I need this for port nautilus to GtkHeaderBar.
Created attachment 266513 [details]
Can't reproduce. I added
label = gtk_label_new ("");
gtk_widget_set_no_show_all (label, TRUE);
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), label);
to testtitlebar, and you can see that it happily packs buttons at the start, all the way to the end.
I think this isn't right.
Just to be make sure, set the title of the label
to "GNOME", you can to see the label, it isn't hide
You need to hide the label after the call to gtk_header_bar_set_custom_title()
Also, try to add 12 buttons in each side. you can to see more a space
in the middle of the window.
I see now the screenshot.
In the right side you can to see some space.
This need to be the "" string. replace it with
"GNOME" and you will see "GNOME".