Task progress is shown using progress bar on a different window
I call the window with the progress bar when the task starts.
I try using
grab_focus(),
present(),
set_keep_above(true) and
show_all()
In this specific order on the progress bar window, but the main application window always stays on top. Only after when the task gets completed the progress bar window appears.
Desired result
Show Progress bar window on top of application window when the task starts
Hide Progress bar window leave only the application window to be shown when the task ends
What am i doing wrong?
How do I achieve the desired work flow of the two windows to be in syn?
Don’t do that, please: it’s just a workaround for a broken design. You’re interrupting the main loop with some synchronous operation, and thus you’re preventing anything else that GTK or other dependencies are doing.
Yes a workaround. But for the current situation a big chunk of code had to be removed from the GUI and placed into the core for which I don’t have time. I do understand what you are trying to say but I don’t have control over the design.