| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
FTS5 has a complex enough syntax that it makes not much sense to wrap
in simple search boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=765981
|
|
|
|
| |
Sad face for me.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tracker:uri-is-descendant/parent has the unfortunate side effect of
rendering the collation mechanisms in the database useless, so those
require full table scans to be validated.
Performing these as pure string comparisons will perform much better,
as those allow the underlying sqlite to rely on its own collation
to perform the search, which can be significantly faster with many
elements in the database.
https://bugzilla.gnome.org/show_bug.cgi?id=758407
|
|
|
|
|
|
|
| |
This could produce strange warnings as it is currently passed to
tracker:uri-is-* sparql functions, as these expect no NULLs.
https://bugzilla.gnome.org/show_bug.cgi?id=758407
|
| |
|
|
|
|
|
|
| |
Make GtkSearchHit carry a GFile instead of an uri. Most of the
search engines already have the object around, and converting
to an uri and back is unnecessary extra work.
|
|
|
|
|
|
| |
It is a bit pointless to have the file chooser get a uri from an
existing GFile to put in the query, only to have some of the search
engines reconstruct a GFile from it.
|
|
|
|
|
|
| |
We generally have const getters for strings, and the two users
of this API were promptly leaking the (unexpected) copy they
got from gtk_query_get_location and gtk_query_get_text.
|
|
|
|
|
| |
The function is called tracker:uri-is-descendant, not
tracker-uri-is-descendant.
|
|
|
|
| |
We can just make this type final, and avoid the private struct.
|
|
|
|
| |
We create the indexed_locations array unconditionally.
|
|
|
|
|
|
| |
Implement the IsIndexed callback for tracker. This requires
reading settings of the tracker file miner. We are careful
to avoid a hard dependency on the tracker schemas.
|
|
|
|
|
|
|
| |
Add a flag for recursive search, and implement non-recursive
search in both the tracker and simple search engines.
This is not currently used in the file chooser.
|
| |
|
|
|
|
|
| |
Strip leading underscores from GtkQuery api, and
clean up the sources a bit.
|
| |
|
|
|
|
|
|
|
|
|
| |
The object might be destroyed when mid operation, causing crashes as the
query callback still expects the object pointer to be valid. Also, remove
the gdk_threads_enter/leave pairs, the callback will be executed on the
caller (UI) thread, so this is not necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=745479
|
|
|
|
|
| |
This makes sure we use location_uri for both types of query, and the fts
query has been made more similar to the one used by nautilus.
|
|
|
|
|
|
| |
We want to match what nautilus does, and the non-fts query
ignores the location, which yields somewhat broken UI in
the file chooser.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=702996
|
| |
|
|
|
|
|
|
|
|
| |
We simply use the Tracker DBus api here, caching and direct
access that come with libtracker-sparql are probably not needed
here. Based on a patch by Martyn Russell.
https://bugzilla.gnome.org/show_bug.cgi?id=658272
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=642773
|
| |
|
|
|
|
|
| |
Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642768
|
| |
|
|
|
|
|
|
| |
Async callbacks are delivered in idles, so we need to make sure
we get the gdk lock before calling any gdk/gtk stuff. This was
missing in a few places.
|
|
|
|
|
| |
Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642771
|
|
|
|
| |
libtracker-sparql is available in Tracker 0.9/0.10
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Tracker 0.8 series (and late 0.7.xx) introduces new API based on SPARQL
query language. The queries here use fulltext search, just like with
with previous tracker versions. Old tracker 0.6 support is still maintained.
|
|
|
|
|
| |
Make GtkSearchEngineTracker work with libtracker 0.6 and 0.7.
See bug 596081.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Mitch and Tim
svn path=/trunk/; revision=20669
|
|
|
|
|
|
|
|
| |
* gtk/gtksearchenginetracker.c: (_gtk_search_engine_tracker_new):
check that tracker is actually working before using it. Fixes
bug #479197.
svn path=/trunk/; revision=20149
|
|
|
|
|
|
|
|
|
|
| |
2007-09-18 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchenginetracker.c: Search libtrackerclient.so.0
as libtracker changed the shared library name. (#478173,
Michael Kuhn)
svn path=/trunk/; revision=18846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-06-22 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchenginebeagle.c:
* gtk/gtksearchenginesimple.c:
* gtk/gtksearchenginetracker.c: Remove the MIME type calls and
queries from the search engine implementations, since we use our
own GtkFileSystem to filter out basing on MIME types and we cannot
query MIME types anyway. The GtkQuery private object still has
MIME type, as well as location, support for future expansion.
svn path=/trunk/; revision=18219
|
|
2007-05-02 Emmanuele Bassi <ebassi@gnome.org>
Add search file support in the GtkFileChooser. Original patch
by Federico Mena Quintero; patch updated by Matthias Clasen.
See bug #344785.
* gtk/gtksearchengine.[ch]: Private search engine abstraction
object.
* gtk/gtksearchenginebeagle.[ch]: Private search engine
implementation using libbeagle (via g_module_open()).
* gtk/gtksearchenginesimple.[ch]: Private search engine
implementation using file tree walking.
* gtk/gtksearchenginetracker.[ch]: Private earch engine
implementation using libtracker (via g_module_open()).
* gtk/gtkquery.[ch]: Private query object for the search
engines.
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
query a search engine backend using GtkQuery; create a new
operating mode, OPERATION_MODE_SEARCH, and call the common
operating mode OPERATION_MODE_BROWSE; add support for virtual
shortcuts inside the shortcuts model and create a new "Search"
virtual shortcut.
* gtk/Makefile.am: Update the build with the new files
svn path=/trunk/; revision=17783
|