[gnome-games/gnome-3-4] mahjongg: Can't select new stone without	unselecting existing one
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-games/gnome-3-4] mahjongg: Can't select new stone without	unselecting existing one
- Date: Fri, 13 Apr 2012 06:08:20 +0000 (UTC)
commit eb198eafe903c5dbe875fe1cc4deaae5d624f0cb
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Apr 13 16:06:42 2012 +1000
    mahjongg: Can't select new stone without unselecting existing one
 mahjongg/src/game-view.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/mahjongg/src/game-view.vala b/mahjongg/src/game-view.vala
index 78f6145..0fcd9b8 100644
--- a/mahjongg/src/game-view.vala
+++ b/mahjongg/src/game-view.vala
@@ -256,6 +256,11 @@ public class GameView : Gtk.DrawingArea
                 game.remove_pair (game.selected_tile, tile);
                 return true;
             }
+            else
+            {
+                game.selected_tile = tile;
+                return true;
+            }
         }
 
         return false;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]