ApplicationWindow insensitive disables ProgressBar update
Steps to reproduce
- Use an ApplicationWindow with an embedded ProgressBar
- Set ApplicationWindow insensitive (in Python
window.set_sensitive(False)
) so its menus and Icons will not allow interaction during a long operation. - Update the progressbar
progress.set_fraction(0.5)
- process the pending events
while Gtk.events_pending():
Gtk.main_iteration()
Current behavior
with Gtk 3.24.14 The progressbar does not update until the ApplicationWindow is set sensitive again (by which time it has reached 100% in normal operation.
Expected outcome
with Gtk 3.18.9 the progressbar updates as expected.
Version information
Gtk 3.24.14 on Windows built with MINGW64
Additional information
Our application (Gramps) has been using the 3.18.9 Gtk on the Windows platform for a long time, due to a variety of issues with more recent versions. I tried to update to the newer version of Gtk and this new issue occurs.
If the current behavior is expected, please suggest how to make my embedded progressbar function while also disabling the menus and icons etc. The need for the events_pending loop would otherwise allow the user to do potentially difficult operations during the long operation (like import/export).