set_resize_mode() sets the priority of any resize requests for the container widget calling the method. The standard behaviour is to have any such requests added to a queue; setting the resize mode to GTK_RESIZE_IMMEDIATE bypasses that queue.