Gtk.Widget.prototype.queue_resize
function queue_resize():void { // Gjs wrapper for gtk_widget_queue_resize() }
This function is only for use in widget implementations. Flags a widget to have its size renegotiated; should be called when a widget for some reason has a new size request. For example, when you change the text in a Gtk.Label, Gtk.Label queues a resize to ensure there's enough space for the new text.
<note><para>You cannot call Gtk.Widget.prototype.queue_resize on a widget from inside its implementation of the GtkWidgetClass::size_allocate virtual method. Calls to Gtk.Widget.prototype.queue_resize from inside GtkWidgetClass::size_allocate will be silently ignored.</para></note>