[gnome-nibbles/wip/vala: 29/64] Add modelines



commit 585587726cd7cf4798716e722ea197a25791af2c
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Wed Jul 1 00:35:46 2015 +0300

    Add modelines

 src/gnome-nibbles.vala |    3 ++-
 src/nibbles-game.vala  |    3 ++-
 src/nibbles-view.vala  |    5 ++---
 src/worm.vala          |    5 +++--
 4 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 761bd8d..1c194cf 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -1,4 +1,5 @@
-/* Gnome Nibbles: Gnome Worm Game
+/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * Gnome Nibbles: Gnome Worm Game
  * Copyright (C) 2015 Iulian-Gabriel Radu
  *
  * This program is free software: you can redistribute it and/or modify
diff --git a/src/nibbles-game.vala b/src/nibbles-game.vala
index 3022ec9..8601ec7 100644
--- a/src/nibbles-game.vala
+++ b/src/nibbles-game.vala
@@ -1,4 +1,5 @@
-/* Gnome Nibbles: Gnome Worm Game
+/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * Gnome Nibbles: Gnome Worm Game
  * Copyright (C) 2015 Iulian-Gabriel Radu
  *
  * This program is free software: you can redistribute it and/or modify
diff --git a/src/nibbles-view.vala b/src/nibbles-view.vala
index 2057dfd..499914e 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -1,4 +1,5 @@
-/* Gnome Nibbles: Gnome Worm Game
+/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * Gnome Nibbles: Gnome Worm Game
  * Copyright (C) 2015 Iulian-Gabriel Radu, Sean MacIsaac, Ian Peters,
  *                    Guillaume Béland
  *
@@ -473,7 +474,6 @@ public class NibblesView : GtkClutter.Embed
         var actors = worm_actors.get (worm);
         foreach (var actor in actors.get_children ())
         {
-            stderr.printf("[Debug] Before\n");
             GtkClutter.Texture texture = new GtkClutter.Texture ();
             var color = game.worm_props.get (worm).color;
             try
@@ -496,7 +496,6 @@ public class NibblesView : GtkClutter.Embed
             texture.set_position (x, y);
             texture.set_size (game.tile_size, game.tile_size);
             group.add_child (texture);
-            stderr.printf("[Debug] After\n");
         }
 
         actors.remove_all_children ();
diff --git a/src/worm.vala b/src/worm.vala
index 5117229..162977d 100644
--- a/src/worm.vala
+++ b/src/worm.vala
@@ -1,4 +1,5 @@
-/* Gnome Nibbles: Gnome Worm Game
+/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+ * Gnome Nibbles: Gnome Worm Game
  * Copyright (C) 2015 Iulian-Gabriel Radu, Sean MacIsaac, Ian Peters,
  *                    Guillaume Béland
  *
@@ -271,7 +272,6 @@ public class Worm : Object
     }
 
     public void queue_keypress (WormDirection dir)
-                requires (!key_queue.is_empty)
     {
         /* Ignore duplicates in normal movement mode. This resolves the key
          * repeat issue
@@ -283,6 +283,7 @@ public class Worm : Object
     }
 
     public void dequeue_keypress ()
+                requires (!key_queue.is_empty)
     {
         direction = key_queue.poll ();
     }


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