thanks in advance for the help!
So here's the situation:
- My app builds a layout of widgets that are fixed size (containing text, with the size of the widget determined by the length of the text inside). Let's call them "words" for simplicity.
- These widgets are packed left to right horizontally into a box, with a line break (creating a new line box widget below) when it realizes that adding the next widget would make the line longer than the window. (Lines are set to expand to the width of the window.)
- I have it set up to re-wrap the lines when the window is resized (with a callback to my resize function on the "notify::default-width" signal).
- This works when the window is expanded, but not when I attempt to reduce its size.
- Apparently, it's fine to expand the window because then the lines expand to fit and the words are neatly repacked. However one can't reduce the size of the window, because each line contains a number of fixed-width words.
- Therefore, I wonder whether it's possible to issue some kind of notification when the user "requests" to reduce the size of the window and use this to trigger a re-wrap?
Thanks again!
.cfile [with (e.g.)#include <stdio.h>]. But, no (e.g.)#include "myprogram.h"(For those, copy-and-paste in the.hcontents.) The errors may be in code that you don't suspect, so we really want full code. For runtime errors, it should compile cleanly. We should be able to download and inspect/build/run the code on our systems. We/you might: (1) compile with-Wall -fsanitize=address -O0 -g(2) run it undergdb, orstrace(3) add debugprintf