[gnome-control-center] shell: Don't search in desktop description
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Don't search in desktop description
- Date: Mon, 7 Jan 2013 15:35:17 +0000 (UTC)
commit d48ba2d566faca61ea1ea34ca8b4aa5e4a97f9b0
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 7 16:08:21 2013 +0100
shell: Don't search in desktop description
We use keywords instead.
https://bugzilla.gnome.org/show_bug.cgi?id=674061
shell/gnome-control-center.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index d3a415a..d574a5e 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -441,21 +441,19 @@ model_filter_func (GtkTreeModel *model,
GtkTreeIter *iter,
GnomeControlCenterPrivate *priv)
{
- gchar *name, *description;
+ gchar *name;
gchar *needle, *haystack;
gboolean result;
gchar **keywords;
gtk_tree_model_get (model, iter,
COL_NAME, &name,
- COL_DESCRIPTION, &description,
COL_KEYWORDS, &keywords,
-1);
if (!priv->filter_string || !name)
{
g_free (name);
- g_free (description);
g_strfreev (keywords);
return FALSE;
}
@@ -465,15 +463,6 @@ model_filter_func (GtkTreeModel *model,
result = (strstr (haystack, needle) != NULL);
- if (!result && description)
- {
- gchar *folded;
-
- folded = g_utf8_casefold (description, -1);
- result = (strstr (folded, needle) != NULL);
- g_free (folded);
- }
-
if (!result && keywords)
{
gint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]