]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
added missing default keys, closes Debian bug #205656
authorDaniel Carbonell Fraj <bocata@src.gnome.org>
Sat, 16 Aug 2003 14:15:55 +0000 (14:15 +0000)
committerDaniel Carbonell Fraj <bocata@src.gnome.org>
Sat, 16 Aug 2003 14:15:55 +0000 (14:15 +0000)
ChangeLog
src/config.c
src/config.h

index 520a8dc64f4704aa265f73c08ec1183509772e22..4b0e4230801da191543e779a88572d5fe77c4fc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-08-16  Dani Carbonell  <bocata@panete.net>
+
+       * src/config.c: Addded missing default keys to the 'defaultkeys'
+       array, fixes Debian bug #205656.
+
+       * src/config.h (GTetrinetKeys): Changed this bunch of defines to be a
+       single enum.
+
 2003-08-10  Hasbullah Bin Pit <sebol@ikhlas.com>
        
        * configure.in: Added 'ms' (Malay) to AlL_LINGUAS.
index c7b4ad878240bb8638a8c6afbfce635a3050838a..33f8cb3610a7fb120c09dfdd8bbcc1e6878769ce 100644 (file)
@@ -66,7 +66,13 @@ guint defaultkeys[K_NUM] = {
     GDK_Down,
     GDK_space,
     GDK_d,
-    GDK_t
+    GDK_t,
+    GDK_1,
+    GDK_2,
+    GDK_3,
+    GDK_4,
+    GDK_5,
+    GDK_6
 };
 
 guint keys[K_NUM];
index d8818c061b4b502bd15857a7e2a7062abdfc2b74..37ea82557d9e1f57a72be42e3e97d5e023ab10e2 100644 (file)
@@ -115,19 +115,22 @@ partyline_enable_channel_list_changed (GConfClient *client,
 #define GTETRINET_THEMES GTETRINET_DATA"/themes"
 #define DEFAULTTHEME GTETRINET_THEMES"/default/"
 
-#define K_RIGHT 0
-#define K_LEFT 1
-#define K_ROTRIGHT 2
-#define K_ROTLEFT 3
-#define K_DOWN 4
-#define K_DROP 5
-#define K_DISCARD 6
-#define K_GAMEMSG 7
-#define K_SPECIAL1 8
-#define K_SPECIAL2 9
-#define K_SPECIAL3 10 
-#define K_SPECIAL4 11
-#define K_SPECIAL5 12
-#define K_SPECIAL6 13
+typedef enum
+{
+  K_RIGHT, 
+  K_LEFT, 
+  K_ROTRIGHT, 
+  K_ROTLEFT,
+  K_DOWN,
+  K_DROP,
+  K_DISCARD,
+  K_GAMEMSG,
+  K_SPECIAL1,
+  K_SPECIAL2,
+  K_SPECIAL3, 
+  K_SPECIAL4,
+  K_SPECIAL5,
+  K_SPECIAL6,
 /* not a key but the number of configurable keys */
-#define K_NUM 14
+  K_NUM
+} GTetrinetKeys;