this turned out to be more tricky than expected. When we initially configure the UI and invoke this->show_all(), seemingly some draw-callbacks will be scheduled into the event loop. Just set_visible(false) on the relevant buttons directly after that call will have no effect (since the widget is still hidden at that point anyway, it is not yet mapped and realised). Thus we need to schedule a callback with the Glib::signal_idle(), so our state detection runs after the initial mapping of the UI NOTE: there is a minor itch, which I don't address right now: when adding the error state and thus revealing the additional buttons, the error log grabs some additional horizontal space, even while there would be ample space for the additional buttons within the button bar. When the error state is cleared and the buttons thus hidden again, the additional horizontal space is dropped and the error log gets narrower. Probably we'd need some special GTK call to re-allocate the required space properly |
||
|---|---|---|
| .. | ||
| draw | ||
| DIR_INFO | ||
| empty.html | ||
| InterfaceConcept_Varga.mm | ||
| renderengine.html | ||
| thinkPad.ichthyo.mm | ||
| uml | ||
| workflow.mm | ||