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 767932 - center widget in GtkBox does not work when packed as custom title in GtkHeaderBar
center widget in GtkBox does not work when packed as custom title in GtkHeade...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-06-22 01:55 UTC by Christian Hergert
Modified: 2016-06-26 22:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case for invalid center sizing in headerbar (499 bytes, text/x-python)
2016-06-22 01:55 UTC, Christian Hergert
Details
test case for box in headerbar vs window contents (636 bytes, text/plain)
2016-06-22 20:34 UTC, Christian Hergert
Details

Description Christian Hergert 2016-06-22 01:55:02 UTC
Created attachment 330173 [details]
test case for invalid center sizing in headerbar

If I set a GtkBox as the custom title in a GtkHeaderBar, I would expect its center_widget to be respected (and sizing of start/end packed widgets to be taken into account).

Instead, it seems to just allocate the whole thing centered.
Comment 1 Christian Hergert 2016-06-22 20:34:16 UTC
Created attachment 330216 [details]
test case for box in headerbar vs window contents

Here is a better test case that shows the same box in the headerbar vs in the main content area of a window.

I would expect them to behave similarly.
Comment 2 Ray Strode [halfline] 2016-06-26 22:36:27 UTC
given bug 724332 is done now i think you're squared away here now.  If i'm wrong, please reopen.