diff options
author | Slava Aseev <[email protected]> | 2019-07-18 17:15:11 +0300 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-02 07:43:29 -0400 |
commit | dd4a31a1eb6fdd0fd4c22276de864d83c98830a2 (patch) | |
tree | c67b0d4d55610bfb1c221f43c5011c9adda5762f /libcaja-private/caja-query.c | |
parent | d638f84c9dfbbb8cca2625cd431921f52e603c02 (diff) | |
download | caja-dd4a31a1eb6fdd0fd4c22276de864d83c98830a2.tar.bz2 caja-dd4a31a1eb6fdd0fd4c22276de864d83c98830a2.tar.xz |
Support querying files by contained text
ODF files also supported via odt2txt
Diffstat (limited to 'libcaja-private/caja-query.c')
-rw-r--r-- | libcaja-private/caja-query.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcaja-private/caja-query.c b/libcaja-private/caja-query.c index e7baf72f..1064fd16 100644 --- a/libcaja-private/caja-query.c +++ b/libcaja-private/caja-query.c @@ -39,6 +39,7 @@ struct CajaQueryDetails GList *tags; gint64 timestamp; gint64 size; + char *contained_text; }; static void caja_query_class_init (CajaQueryClass *class); @@ -485,3 +486,14 @@ gint64 caja_query_get_size(CajaQuery *query) { return query->details->size; } + +void caja_query_set_contained_text (CajaQuery *query, const char *text) +{ + g_free (query->details->contained_text); + query->details->contained_text = g_strdup (text); +} + +char *caja_query_get_contained_text (CajaQuery *query) +{ + return g_strdup (query->details->contained_text); +} |