Skip to content
Snippets Groups Projects
Commit 90c226d8 authored by Theo Linkspfeifer's avatar Theo Linkspfeifer :speech_balloon: Committed by Andre Miranda
Browse files

Fix pathbar match filtering (Bug #16267)

parent dfb3de29
No related branches found
No related tags found
No related merge requests found
......@@ -893,13 +893,14 @@ thunar_path_entry_match_func (GtkEntryCompletion *completion,
GtkTreeIter *iter,
gpointer user_data)
{
GtkTreeModel *model;
const gchar *last_slash;
ThunarFile *file;
gboolean matched;
gchar *text_normalized;
gchar *name_normalized;
gchar *name;
GtkTreeModel *model;
ThunarPathEntry *path_entry;
const gchar *last_slash;
ThunarFile *file;
gboolean matched;
gchar *text_normalized;
gchar *name_normalized;
gchar *name;
/* determine the model from the completion */
model = gtk_entry_completion_get_model (completion);
......@@ -909,6 +910,12 @@ thunar_path_entry_match_func (GtkEntryCompletion *completion,
if (G_UNLIKELY (model == NULL))
return FALSE;
/* leave if the auto completion highlight was not cleared yet, to prevent
* https://bugzilla.xfce.org/show_bug.cgi?id=16267. */
path_entry = THUNAR_PATH_ENTRY (user_data);
if (G_UNLIKELY (path_entry->has_completion))
return FALSE;
/* determine the current text (UTF-8 normalized) */
text_normalized = g_utf8_normalize (gtk_entry_get_text (GTK_ENTRY (user_data)), -1, G_NORMALIZE_ALL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment