I have a widget that relies on its own GtkLayoutManager
. The parent – also a custom widget – allocates this widget using gtk_widget_allocate()
, requesting a baseline > -1
. I expect that gtk_widget_allocate()
passes the requested baseline to the child’s GtkLayoutManagerClass->allocate()
function, however that is not the case and the latter always receives -1
.
What might be missing?
Update (problem solved): My bad. The only problem was that I was forgetting to set the vertical alignment ("valign"
) of the child to GTK_ALIGN_BASELINE_FILL
.