Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/gtk/exo/exo-icon-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static void exo_icon_view_search_preedit_changed (GtkIMContext *im_cont
#endif
static gboolean exo_icon_view_search_start (ExoIconView *icon_view,
gboolean keybinding);
static gboolean exo_icon_view_search_equal_func (GtkTreeModel *model,
gboolean exo_icon_view_search_equal_func (GtkTreeModel *model,
gint column,
const gchar *key,
GtkTreeIter *iter,
Expand Down Expand Up @@ -8935,7 +8935,7 @@ exo_icon_view_search_start (ExoIconView *icon_view,



static gboolean
gboolean
exo_icon_view_search_equal_func (GtkTreeModel *model,
gint column,
const gchar *key,
Expand Down Expand Up @@ -8982,7 +8982,7 @@ exo_icon_view_search_equal_func (GtkTreeModel *model,
case_normalized_key = g_utf8_casefold (normalized_key, -1);

/* compare the casefolded strings */
if (strncmp (case_normalized_key, case_normalized_string, strlen (case_normalized_key)) == 0)
if (strstr (case_normalized_string, case_normalized_key) != 0)
retval = FALSE;
}

Expand Down
9 changes: 9 additions & 0 deletions src/gtk/exo/exo-tree-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,19 @@ exo_tree_view_class_init (ExoTreeViewClass *klass)
}


gboolean
exo_icon_view_search_equal_func (GtkTreeModel *model,
gint column,
const gchar *key,
GtkTreeIter *iter,
gpointer user_data);


static void
exo_tree_view_init (ExoTreeView *tree_view)
{
gtk_tree_view_set_search_equal_func(&tree_view->__parent__, exo_icon_view_search_equal_func, 0, 0);

/* grab a pointer on the private data */
tree_view->priv = EXO_TREE_VIEW_GET_PRIVATE (tree_view);
tree_view->priv->single_click_timeout_id = -1;
Expand Down