Skip to content

Commit

Permalink
Fix finding paths in the document list on Windows
Browse files Browse the repository at this point in the history
Finding paths in the tree was not case-insensitive either.
  • Loading branch information
ntrel committed Nov 1, 2011
1 parent fdd5537 commit 5f0e46e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sidebar.c
Expand Up @@ -336,7 +336,7 @@ static gboolean find_tree_iter_dir(GtkTreeIter *iter, const gchar *dir)

gtk_tree_model_get(GTK_TREE_MODEL(store_openfiles), iter, DOCUMENTS_SHORTNAME, &name, -1);

result = utils_str_equal(name, dir);
result = utils_filenamecmp(name, dir) == 0;
g_free(name);

return result;
Expand All @@ -346,10 +346,10 @@ static gboolean find_tree_iter_dir(GtkTreeIter *iter, const gchar *dir)
static gboolean utils_filename_has_prefix(const gchar *str, const gchar *prefix)
{
gchar *head = g_strndup(str, strlen(prefix));
gint ret = utils_filenamecmp(head, prefix);
gboolean ret = utils_filenamecmp(head, prefix) == 0;

g_free(head);
return ret == 0;
return ret;
}


Expand Down

0 comments on commit 5f0e46e

Please sign in to comment.