[lightsoff] Fix compilation in Fedora 19



commit 5c407f5edc31d92c73f07bc475e6cc4fde4bb861
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Nov 17 16:08:27 2013 -0600

    Fix compilation in Fedora 19

 src/Makefile.am    |    1 +
 src/lightsoff.vala |   12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index c74b81d..0cea556 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,6 +11,7 @@ lightsoff_SOURCES = \
 lightsoff_VALAFLAGS = \
        --pkg posix \
        --pkg gmodule-2.0 \
+       --pkg clutter-1.0 \
        --pkg clutter-gtk-1.0
 
 lightsoff_CFLAGS = \
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index a8283bb..1084978 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -80,22 +80,22 @@ public class LightsOff : Gtk.Application
     {
         switch (event.keyval)
         {
-        case Clutter.KEY_Escape:
+        case Clutter.Key.Escape:
             game_view.hide_cursor ();
             return true;
-        case Clutter.KEY_Down:
+        case Clutter.Key.Down:
             game_view.move_cursor (0, 1);
             return true;
-        case Clutter.KEY_Up:
+        case Clutter.Key.Up:
             game_view.move_cursor (0, -1);
             return true;
-        case Clutter.KEY_Left:
+        case Clutter.Key.Left:
             game_view.move_cursor (-1, 0);
             return true;
-        case Clutter.KEY_Right:
+        case Clutter.Key.Right:
             game_view.move_cursor (1, 0);
             return true;
-        case Clutter.KEY_Return:
+        case Clutter.Key.Return:
             game_view.activate_cursor ();
             return true;
         default:


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