[libgames-support] scores: make get_best_n_scores public



commit 222d43de3c16c0a5750f11893a297c969fafa82b
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Tue Aug 18 23:57:03 2015 +0300

    scores: make get_best_n_scores public
    
    This is useful for example when you want to tell the user how many
    more points does he need before reaching the leaderboard.

 games/scores/context.vala |    2 +-
 games/scores/score.vala   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/games/scores/context.vala b/games/scores/context.vala
index 617ddb9..2b59585 100644
--- a/games/scores/context.vala
+++ b/games/scores/context.vala
@@ -120,7 +120,7 @@ public class Context : Object
     }
 
     /* Get a maximum of best n scores from the given category */
-    internal List<Score>? get_best_n_scores (Category category, int n)
+    public List<Score>? get_best_n_scores (Category category, int n)
     {
         if (!scores_per_category.has_key (category))
         {
diff --git a/games/scores/score.vala b/games/scores/score.vala
index ac045d3..e271224 100644
--- a/games/scores/score.vala
+++ b/games/scores/score.vala
@@ -21,7 +21,7 @@
 namespace Games {
 namespace Scores {
 
-internal class Score : Object
+public class Score : Object
 {
     public long score { get; set; }
     public string? user { get; set; }


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