GtkWidget::measure docs should say how to report lack of baselines
While implementing a widget that does not display text, I put this in my ::measure
as that seemed sensible:
static void
my_widget_measure (GtkWidget *widget,
GtkOrientation orientation,
int for_size,
int *minimum,
int *natural,
int *minimum_baseline,
int *natural_baseline)
{
// ...
*minimum_baseline = 0;
*natural_baseline = 0;
}
Subsequently I got (crosswords:14233): Gtk-WARNING **: 11:40:44.013: PlayBorder 0x31cc970 reported a horizontal baseline
.
It turns out that one can set those values to -1, or just not set them at all. The docs for ::measure
should say that.