Commit 37bfc862 authored by Adrien Plazas's avatar Adrien Plazas

GTK+: Mention HdyHeaderGroup in the Title Bar section

This explains how to automatically handle the header bars' window
parent af83545f
Pipeline #1337 passed with stage
in 46 seconds
......@@ -21,6 +21,7 @@
.. _GtkSeparator :
.. _GtkSizeGroup :
.. _HdyHeaderGroup :
.. _HdyLeaflet :
.. _HdyTitleBar :
......@@ -79,6 +80,7 @@ HdyTitleBar_ is a simple container that takes care of the look of the title bar.
It is a very convenient widget as it allows header bars to look good when animated by ensuring they don't draw the title bar's background themselves, which is a requirement for adaptive apps, and it simplifies common operations like setting the selection mode a lot.
Some title bars are composed of multiple header bars, in such a case it is advised to separate them with a GtkSeparator_ with the `sidebar` style class.
To help spreading the window decoration across all headerbars as if they were only one, just show the close button on all of your header bars and put them into a HdyHeaderGroup_ in the some order they appear in the title bar.
Here is an simple `GtkBuilder` example showing this section's advises:
......@@ -113,6 +115,12 @@ Here is an simple `GtkBuilder` example showing this section's advises:
<object class="HdyHeaderGroup">
<headerbar name="start_header"/>
<headerbar name="end_header"/>
Selection Mode
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment