Gtk.Label with wrap=True and a lot of text uses much more vertical space then necessary
Steps to reproduce
Add a Label
with wrap = True and a lot of text to a Gtk.Box (no idea if this has anything to do with that container though).
I don't currently work in C, so this might not be super useful, but here's a working example in Python:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
INSTRUCTIONS = "some very long text " * 30
win = Gtk.Window()
instructions_lbl = Gtk.Label(label=INSTRUCTIONS, wrap=True)
main = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=0)
main.set_border_width(0)
main.pack_start(instructions_lbl, False, False, 0)
win.add(main)
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()
Current behavior
Takes way more size than necessary and window cannot be resized to a more reasonable height.
Expected outcome
Take as little space as necessary.
Version information
Kubuntu 18.04 (64 bit) Gtk 3.22.30-1ubuntu3
Additional information
Screenshot of the window while I'm trying to resize it.
Edited by Ghost User