Apache OpenOffice (AOO) Bugzilla – Issue 93366
fpicker: more efficient to run the gtk (like macosx) fpicker in the normal thread
Last modified: 2008-12-23 12:27:45 UTC
The windows system fpicker was the first one, and in sfx2 it gets run in a thread (for some reason or other). The macosx one is ifdefed to get run in the current thread instead because of drawing issues. The gtk one ties itself in complete knots to launch the system dialog back in the "main thread" because gnome-vfs2 backed dialogs need to have the gnome-vfs2 stuff run in the same thread as where gnome-vfs2 was initialized in ucb so as to be reliable (though the new gio backed one seems to not need this) Seeing as there are only three system fpicker implementations, windows, macosx and gtk. It seems best to just special-case the windows one in sfx2 to get its own thread, and let the other ones just get executed "naturally". It's way easier for any future fpickers to decide themselves in their own implementations to run their system dialog in a custom thread than it is to get themselves run in the primordial thread after-the-fact. The plus side for the gtk fpicker is that the 100% cpu behaviour seen in 3.0.0 when it is open goes away.
Created attachment 56152 [details] proposed patch
accepting...
Do you have a CWS for this ?
Yeah, but I waiting for m31 to sync it up, so as to not conflict with a different fpicker thing.
Yeah, but I waiting for m32 to sync it up, so as to not conflict with a different fpicker thing.
Done in cmcfixes50 cmc->kendy: You may need to check the out-of-tree kde fpicker to see if it will be happy with this change, the in-tree ones are
If the patch hasn't changed when it went to the CWS, everything should be fine, I've already updated the KDE fpicker in ooo-build to deal with being in the main thread [it was not too happy with that before - it froze the entire KDE when chosen from the menu ;-)].
cmc->kendy: Happy to verify this change ?
cmc: Please, is this CWS still in CVS, or in SVN? I tried to extract the patch from the CVS, but it seems to be missing the fpicker part...
svn, in old cvs land we were waiting on the conflicting issue 92878 before we could commit it.
Now verified.
closing, is in DEV300_m36
*** Issue 97423 has been marked as a duplicate of this issue. ***