fileModel: Use GFile with URI as key
Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/174>
This commit is contained in:
parent
3b0c32ecee
commit
032707a210
10 changed files with 164 additions and 188 deletions
|
|
@ -66,10 +66,7 @@ pub async fn query_attributes_future(
|
|||
.context("Failed to query attributes")
|
||||
}
|
||||
|
||||
pub fn compare_by_name(file_a: &Path, file_b: &Path) -> std::cmp::Ordering {
|
||||
let name_a = file_a.display().to_string();
|
||||
let name_b = file_b.display().to_string();
|
||||
|
||||
pub fn compare_by_name(name_a: &glib::GString, name_b: &glib::GString) -> std::cmp::Ordering {
|
||||
let key_a = glib::FilenameCollationKey::from(name_a);
|
||||
let key_b = glib::FilenameCollationKey::from(name_b);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue