Fix alignment of tracks on Cover panel (close #106)
GTK 4 centers marks of the Scale widget even when the scale has a vertical orientation. Unfortunately, the Scale widget does not provide a way to set the alignment or to access the internal Label widget in any way. To left-align the labels this commit add a method that traverses the all children of the songs scale recursively and adjusts the alignment if it is a Label widget.
This commit is contained in:
parent
79b3111fb0
commit
162e2d2d36
2 changed files with 22 additions and 1 deletions
|
|
@ -141,6 +141,7 @@
|
|||
<child>
|
||||
<object class="GtkScale" id="songs_scale">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="valign">fill</property>
|
||||
<property name="vexpand">true</property>
|
||||
<property name="restrict-to-fill-level">False</property>
|
||||
|
|
@ -158,4 +159,3 @@
|
|||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue