[gnome-taquin] Rename a method.



commit 9cc19ca2028664d2d346a5553ef04f71f777f8e8
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Feb 16 20:53:02 2019 +0100

    Rename a method.
    
    Overrode Gtk.Window.move.

 src/game-window.vala | 2 +-
 src/taquin-main.vala | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index f2ec03d..46c054c 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -88,7 +88,7 @@ private class GameWindow : BaseWindow, AdaptativeWidget
     * * Some public calls
     \*/
 
-    internal void move (uint moves_count)
+    internal void move_done (uint moves_count)
     {
         headerbar.set_moves_count (ref moves_count);
         hide_notification ();
diff --git a/src/taquin-main.vala b/src/taquin-main.vala
index 20f7e96..6c3fbf7 100644
--- a/src/taquin-main.vala
+++ b/src/taquin-main.vala
@@ -254,7 +254,7 @@ private class Taquin : Gtk.Application, BaseApplication
         int size = settings.get_int ("size");
         game = new Game (type, size);
         view.game = (!) game;
-        window.move (0);
+        window.move_done (0);
         move_done = false;
 
         string filename = "";
@@ -299,7 +299,7 @@ private class Taquin : Gtk.Application, BaseApplication
 
     private void move_cb (bool x_axis, int number, int x_gap, int y_gap, uint moves_count, bool 
disable_animation)
     {
-        window.move (moves_count);
+        window.move_done (moves_count);
         play_sound ("sliding-1");       // TODO sliding-n??
         move_done = true;
     }


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