I have some GTK3 drawing areas that have their minimum height and widths defined.
When I try to programmatically redraw them ( with gtk_widget_queue_draw ) because the underlying data changes, the widget (and whole dialog) resizes to the defined sizes (even though I’ve resized it to be bigger).
The docs for the widget draw signal say that the widget redraw signal will call gtk_widget_get_allocated_width(). Presumably this is what is resetting the size.
How can I redraw but keep the existing window size (if it’s bigger than the minimum)??
Michael
Do you resize the dialog manually, or does it resizes by itself?
In loop, or just once?
How and when do you set the (minimal) size of the drawing area?
The minimum size is set in the glade/xml (width-request/height-request).
I use the mouse to expand application window and the drawing widgets also expand. I get new data and call gtk_widget_queue_draw to redraw the drawing area. When I do this the whole application shrinks to the original size (as when the application starts).