summaryrefslogtreecommitdiff
path: root/src/nautilus-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-file.c')
-rw-r--r--src/nautilus-file.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index a238d6998..e85ffa355 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -3297,22 +3297,21 @@ nautilus_file_compare_for_sort_by_attribute (NautilusFile
/**
* nautilus_file_compare_name:
* @file: A file object
- * @pattern: A string we are comparing it with
+ * @string: A string we are comparing it with
*
- * Return value: result of a comparison of the file name and the given pattern,
- * using the same sorting order as sort by name.
+ * Return value: result of a comparison of the file name and the given string.
**/
int
nautilus_file_compare_display_name (NautilusFile *file,
- const char *pattern)
+ const char *string)
{
const char *name;
int result;
- g_return_val_if_fail (pattern != NULL, -1);
+ g_return_val_if_fail (string != NULL, -1);
name = nautilus_file_peek_display_name (file);
- result = g_utf8_collate (name, pattern);
+ result = g_strcmp0 (name, string);
return result;
}