After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 440213 - Replace GtkSearchEngineSimple with a non-threaded implementation
Replace GtkSearchEngineSimple with a non-threaded implementation
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on: 157076
Blocks:
 
 
Reported: 2007-05-21 16:12 UTC by Emmanuele Bassi (:ebassi)
Modified: 2012-03-27 23:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emmanuele Bassi (:ebassi) 2007-05-21 16:12:53 UTC
currently, GtkSearchEngineSimple uses threads to call nftw() without blocking. this makes the search functionality of the file chooser not work if the application didn't call g_thread_init() first.

in bug #157076 there's a proposal for a ftw()-like API in GLib. if such API would be made available to GTK+, GtkSearchEngineSimple should be switched from nftw().

as an alternative, either GLib or GTK+ should have a GSource to walk a file tree without blocking the UI and without using threads.
Comment 1 Emmanuele Bassi (:ebassi) 2012-03-26 21:45:58 UTC
given that g_thread_init() has been deprecated, we may just close this bug.

alternatively, we could repurpose it for an implementation fo GtkSearchEngineSimple that uses GFileEnumerator instead.
Comment 2 Matthias Clasen 2012-03-27 23:49:14 UTC
Lets open a new bug for that, if we still want it