dialect-app / dialect

A translation app for GNOME.
GNU General Public License v3.0
596 stars 69 forks source link

window: only allocate the needed width of title widget #361

Closed camelCaseNick closed 7 months ago

camelCaseNick commented 7 months ago

The title widget is switched out using a stack, with a Gtk.Stack for hhomogeneous having a default value of true.

Thus, each possible title widget is allocated the same width, and the vertical view is constrained by the width of the language selector even if the "Dialect" string is visible.

With a longer translation of "Auto" and/or a non-default window button layout with at least one on the left or at least two on the right, this results in the window not being able to shrink down to 360px.

rafaelmardojai commented 7 months ago

I am aware of the Gtk.Stack behavior, and I could have sworn that we had hhomogeneous set to false 😅. Nice catch, and thanks for sending a patch, much appreciated!