[libgames-support] scores: Reorder parameters of Context.update_score_name()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] scores: Reorder parameters of Context.update_score_name()
- Date: Sun, 22 Feb 2015 19:12:01 +0000 (UTC)
commit 733b9e8761e64b8b482ceb9181d4cb69c6eaf29c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 22 13:01:08 2015 -0600
scores: Reorder parameters of Context.update_score_name()
scores/context.vala | 2 +-
scores/dialog.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scores/context.vala b/scores/context.vala
index 5a9b095..a0a6f9b 100644
--- a/scores/context.vala
+++ b/scores/context.vala
@@ -68,7 +68,7 @@ public class Context : Object
}
/* Primarily used to change name of player and save the changed score to file */
- internal void update_score_name (Score old_score, string new_name, Category category)
+ internal void update_score_name (Score old_score, Category category, string new_name)
{
var list_scores = new List<Score> ();
var scores_of_this_category = scores_per_category[category];
diff --git a/scores/dialog.vala b/scores/dialog.vala
index e0c7ac6..12704f3 100644
--- a/scores/dialog.vala
+++ b/scores/dialog.vala
@@ -268,7 +268,7 @@ private class Dialog : Gtk.Dialog
var entry = (Gtk.Entry) temp_stack.get_visible_child ();
entry.text = x.user;
entry.notify["text"].connect (() => {
- context.update_score_name (x, entry.get_text (), active_category);
+ context.update_score_name (x, active_category, entry.get_text ());
x.user = entry.get_text ();
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]