- GtkAllocation ca = frame->label_widget->allocation;
-
- // we want the GtkLabel to not exceed maxWidth:
- int maxWidth = allocation->width - 2*LABEL_SIDE_PAD - 2*LABEL_PAD;
- maxWidth = wxMax(2, maxWidth); // maxWidth must always be positive!
-
- // truncate the label to the GtkFrame width...
- ca.width = wxMin(ca.width, maxWidth);
- gtk_widget_size_allocate(frame->label_widget, &ca);