[gnome-games] local-cover: Fix sibling spelling
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] local-cover: Fix sibling spelling
- Date: Tue, 31 Mar 2020 10:39:09 +0000 (UTC)
commit 2bc0927588fcc329e9638fa5c3ed8f3cd6e4ef0b
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Mar 31 15:17:28 2020 +0500
local-cover: Fix sibling spelling
src/utils/local-cover.vala | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/utils/local-cover.vala b/src/utils/local-cover.vala
index f81e4406..e8b70feb 100644
--- a/src/utils/local-cover.vala
+++ b/src/utils/local-cover.vala
@@ -34,7 +34,7 @@ public class Games.LocalCover : Object, Cover {
}
private string? get_cover_path () throws Error {
- var cover_path = get_sibbling_cover_path ();
+ var cover_path = get_sibling_cover_path ();
if (cover_path != null && FileUtils.test (cover_path, FileTest.EXISTS))
return cover_path;
@@ -45,7 +45,7 @@ public class Games.LocalCover : Object, Cover {
return null;
}
- private string? get_sibbling_cover_path () throws Error {
+ private string? get_sibling_cover_path () throws Error {
var file = uri.to_file ();
var parent = file.get_parent ();
if (parent == null)
@@ -58,20 +58,20 @@ public class Games.LocalCover : Object, Cover {
string cover_path = null;
var directory = new Directory (parent);
var attributes = string.join (",", FileAttribute.STANDARD_NAME,
FileAttribute.STANDARD_FAST_CONTENT_TYPE);
- directory.foreach (attributes, (sibbling) => {
- var sibbling_basename = sibbling.get_name ();
- if (sibbling_basename == basename)
+ directory.foreach (attributes, (sibling) => {
+ var sibling_basename = sibling.get_name ();
+ if (sibling_basename == basename)
return false;
- if (!sibbling_basename.has_prefix (prefix))
+ if (!sibling_basename.has_prefix (prefix))
return false;
- var type = sibbling.get_attribute_string (FileAttribute.STANDARD_FAST_CONTENT_TYPE);
+ var type = sibling.get_attribute_string (FileAttribute.STANDARD_FAST_CONTENT_TYPE);
if (!type.has_prefix ("image"))
return false;
- var sibbling_file = parent.get_child (sibbling_basename);
- cover_path = sibbling_file.get_path ();
+ var sibling_file = parent.get_child (sibling_basename);
+ cover_path = sibling_file.get_path ();
return true;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]