Skip to content

Commit

Permalink
window: only allocate the needed width of title widget
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Markus Göllnitz <[email protected]>
  • Loading branch information
camelCaseNick authored and rafaelmardojai committed Dec 3, 2023
1 parent c91d295 commit 3a66d33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/resources/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ template $DialectWindow : Adw.ApplicationWindow {
centering-policy: strict;
title-widget: Stack title_stack {
transition-type: crossfade;
hhomogeneous: false;

StackPage {
name: "selector";
Expand Down

0 comments on commit 3a66d33

Please sign in to comment.