Wrappable labels in GtkListView and GtkListBox


This is a follow-up of this topic.

I’m still really struggling to understand how wrappable labels work. In a GtkListView, extra space is allocated in case the window shrinks, but isn’t in a GtkListBox.

When calling get_request_mode() on the label, I can see that it is GTK_SIZE_REQUEST_CONSTANT_SIZE in the GtkListView and GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH in the GtkListBox.

What makes GtkListView and GtkListBox behave differently? How can I get the same behavior in GtkListView?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.