After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722340 - GtkHeaderBar: The size of a custom title which is hidden taken into consideration
GtkHeaderBar: The size of a custom title which is hidden taken into considera...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.11.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-01-16 14:13 UTC by Yosef Or Boczko
Modified: 2014-01-18 00:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (16.66 KB, image/png)
2014-01-17 01:50 UTC, Matthias Clasen
Details

Description Yosef Or Boczko 2014-01-16 14:13:55 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.
Comment 1 Matthias Clasen 2014-01-17 01:50:22 UTC
Created attachment 266513 [details]
screenshot

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.
Comment 2 Yosef Or Boczko 2014-01-17 02:03:17 UTC
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.
Comment 3 Yosef Or Boczko 2014-01-17 02:06:46 UTC
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".