Gtk_widget_get_width returned a negative number

The child is given a width of 0 via gtk_widget_size_allocate.
The child also has CSS margin properties (0 2px).

So we get child_width = child_width(0) - margin-left(2) - margin-right(2).

Negative values also appear in the parameters of the GtkWidget.size_allocate function.

This doesn’t seem right.

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