[gnome-software] Fix searching for keyworks with special chars



commit 080da0013b2b51525bf29ab617c65eeb18209c37
Author: Richard Hughes <richard hughsie com>
Date:   Sat Jan 3 13:43:49 2015 +0000

    Fix searching for keyworks with special chars
    
    This allows us to search for 'd-feet' and 'c++'.

 src/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 26147ac..f793e86 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -1581,7 +1581,7 @@ gs_plugin_loader_search_thread_cb (GTask *task,
        _cleanup_strv_free_ gchar **values = NULL;
 
        /* run each plugin */
-       values = g_str_tokenize_and_fold (state->value, NULL, NULL);
+       values = g_strsplit (state->value, " ", -1);
        for (i = 0; i < plugin_loader->priv->plugins->len; i++) {
                plugin = g_ptr_array_index (plugin_loader->priv->plugins, i);
                if (!plugin->enabled)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]