[iagno] Rename GameView ReversiView.



commit eccfcd1b67e94b2b240b35f8a28feefafd6ecd4d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Mar 2 13:38:57 2019 +0100

    Rename GameView ReversiView.

 po/POTFILES.in                            | 2 +-
 po/POTFILES.skip                          | 2 +-
 src/game-window.vala                      | 2 +-
 src/iagno.vala                            | 6 +++---
 src/meson.build                           | 4 ++--
 src/{game-view.vala => reversi-view.vala} | 4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 250ad7b..7762cb9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -11,7 +11,7 @@ data/themes/sun_and_star.theme.desktop.in
 data/org.gnome.Reversi.gschema.xml
 src/computer-player.vala
 src/game.vala
-src/game-view.vala
 src/game-window.vala
 src/iagno.vala
 src/player.vala
+src/reversi-view.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 6adbb0a..f9e498f 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,6 +1,6 @@
 src/computer-player.c
 src/game.c
-src/game-view.c
 src/game-window.c
 src/iagno.c
 src/player.c
+src/reversi-view.c
diff --git a/src/game-window.vala b/src/game-window.vala
index f3d9319..99a4f8b 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -82,7 +82,7 @@ private class GameWindow : ApplicationWindow
         headerbar.show ();
         set_titlebar (headerbar);
 
-        ((GameView) view).notify_final_animation.connect ((undoing) => { headerbar.update_history_button 
(!undoing); });
+        ((ReversiView) view).notify_final_animation.connect ((undoing) => { headerbar.update_history_button 
(!undoing); });
 
         set_default_size (width, height);
         if (maximized)
diff --git a/src/iagno.vala b/src/iagno.vala
index f340a83..ac6cca5 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -44,7 +44,7 @@ private class Iagno : Gtk.Application
 
     /* Widgets */
     private GameWindow window;
-    private GameView view;
+    private ReversiView view;
 
     /* Computer player (if there is one) */
     internal ComputerPlayer? computer { internal get; private set; default = null; }
@@ -206,7 +206,7 @@ private class Iagno : Gtk.Application
         /* UI parts */
         Builder builder = new Builder.from_resource ("/org/gnome/Reversi/ui/iagno-screens.ui");
 
-        view = new GameView (this);
+        view = new ReversiView (this);
         view.move.connect (player_move_cb);
         view.clear_impossible_to_move_here_warning.connect (clear_impossible_to_move_here_warning);
 
@@ -634,7 +634,7 @@ private class Iagno : Gtk.Application
         }
     }
 
-    private static void _play_sound (Sound sound, GSound.Context sound_context, ref GameView view)
+    private static void _play_sound (Sound sound, GSound.Context sound_context, ref ReversiView view)
      // requires (sound_context_state == SoundContextState.WORKING)
     {
         string name;
diff --git a/src/meson.build b/src/meson.build
index 28d7e28..8ff7333 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -22,11 +22,11 @@ executable(meson.project_name(),
         'computer-player.vala',
         'computer-reversi.vala',
         'game-headerbar.vala',
-        'game-view.vala',
         'game-window.vala',
         'game.vala',
         'iagno.vala',
-        'player.vala'
+        'player.vala',
+        'reversi-view.vala'
     ] + resources,
     install: true,
     c_args: [
diff --git a/src/game-view.vala b/src/reversi-view.vala
similarity index 99%
rename from src/game-view.vala
rename to src/reversi-view.vala
index 048f63d..877289f 100644
--- a/src/game-view.vala
+++ b/src/reversi-view.vala
@@ -20,7 +20,7 @@
    along with GNOME Reversi.  If not, see <https://www.gnu.org/licenses/>.
 */
 
-private class GameView : Gtk.DrawingArea
+private class ReversiView : Gtk.DrawingArea
 {
     internal bool show_turnable_tiles { private get; internal set; default = false; }
 
@@ -166,7 +166,7 @@ private class GameView : Gtk.DrawingArea
     }
 
     private Iagno iagno_instance;
-    internal GameView (Iagno iagno_instance)
+    internal ReversiView (Iagno iagno_instance)
     {
         this.iagno_instance = iagno_instance;
     }


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