[libgames-support] scores: update score when entry text changes



commit 457c622078f30c90db6f7907cefd44c4bca72b65
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Feb 22 12:55:04 2015 -0600

    scores: update score when entry text changes
    
    Currently we only update the name of the score when the player presses
    Enter in the entry, something he would have no way of knowing to do
    since there's no visual update when Enter is pressed. Instead, let's
    update the name whenever he types a character.

 scores/dialog.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/scores/dialog.vala b/scores/dialog.vala
index c5fa1da..e0c7ac6 100644
--- a/scores/dialog.vala
+++ b/scores/dialog.vala
@@ -267,7 +267,7 @@ private class Dialog : Gtk.Dialog
 
             var entry = (Gtk.Entry) temp_stack.get_visible_child ();
             entry.text = x.user;
-            entry.activate.connect (() => {
+            entry.notify["text"].connect (() => {
                 context.update_score_name (x, entry.get_text (), active_category);
                 x.user = entry.get_text ();
             });


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