[gnome-games] application: Add get_covers_cache_dir()



commit 23723462718d8d2b9761e336c8c2517ffb2a3fee
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Aug 4 10:16:17 2018 +0200

    application: Add get_covers_cache_dir()
    
    This will be used to have the covers cache directory for a given size.

 src/ui/application.vala | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 4ee8d835..49896258 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -129,6 +129,12 @@ public class Games.Application : Gtk.Application {
                return @"$cache_dir/covers";
        }
 
+       public static string get_covers_cache_dir (int size) {
+               var covers_dir = get_covers_dir ();
+
+               return @"$covers_dir/$size";
+       }
+
        public static void try_make_dir (string path) {
                var file = File.new_for_path (path);
                try {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]