[Libreoffice-bugs] [Bug 97306] All LibreOffice apps blocked when a save dialog is opened (Gtk)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 14 16:01:06 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=97306

Caolán McNamara <caolanm at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|103182                      |122043

--- Comment #7 from Caolán McNamara <caolanm at redhat.com> ---
" 1. Click save as button in Calc
  2. Click open button in Writer
  3. Click cancel in Calc's save as prompt
  No result. The buttons are blocked. "

Each file dialog runs its own event loop. The first dialog runs it on top of
the main event loop, then the second file dialog runs its event loop on top of
the first file dialog loop.

So the middle loop, that of the first file dialog, cannot exit until the top
loop, that of the second file dialog, exits.

This should be typical of nearly all the modal dialogs we have, e.g. start in
calc and use format->cells, then in writer use format->title page. Now it
should not be possible to close the format cells until format title is closed
first. And for the same loop within a loop reason.

We do have *some* asynchronous dialogs, e.g. start in writer, and format->page,
then in calc, format cells. The writer format page is an async dialog, so the
format cells is running its event loop on top of the main loop as normal, but
the format page dialog does not have its own loop, so it can be closed while
the next dialog is still running.

To get these file dialog async I guess we'd have to implement
XAsynchronousExecutableDialog for them, and rejig the calling code to pass in a
listener to handle the dialog final response. This is a fairly big chunk of
work for a fairly small gain.

All that said, I don't think there is any gtk specific part to this (remaining
at this point anyway) unless there's any evidence to the contrary I'm missing ?


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103182
[Bug 103182] [META] GTK3-specific bugs
https://bugs.documentfoundation.org/show_bug.cgi?id=122043
[Bug 122043] [META] generic bugs more common under gtk3
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181214/b6d4149e/attachment-0001.html>


More information about the Libreoffice-bugs mailing list