[clutter/android-enter-leave: 10/29] android: move keycodes arrays to text section



commit 4c7f252eb64efd2de0a2898fb9f198c6ded45549
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sun May 27 23:07:42 2012 +0100

    android: move keycodes arrays to text section

 clutter/android/clutter-android-keycodes.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/clutter/android/clutter-android-keycodes.c b/clutter/android/clutter-android-keycodes.c
index 2c01050..ef54c4e 100644
--- a/clutter/android/clutter-android-keycodes.c
+++ b/clutter/android/clutter-android-keycodes.c
@@ -26,7 +26,7 @@
 
 #include <android/keycodes.h>
 
-static guint keycodes[AKEYCODE_BUTTON_MODE + 1] = {
+static const guint keycodes[AKEYCODE_BUTTON_MODE + 1] = {
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_UNKNOWN         = 0, */
   CLUTTER_KEY_Left, /* AKEYCODE_SOFT_LEFT       = 1, */
   CLUTTER_KEY_Right, /* AKEYCODE_SOFT_RIGHT      = 2, */
@@ -140,7 +140,7 @@ static guint keycodes[AKEYCODE_BUTTON_MODE + 1] = {
   CLUTTER_KEY_VoidSymbol /* AKEYCODE_BUTTON_MODE     = 110, */
 };
 
-static guint shifted_keycodes[AKEYCODE_BUTTON_MODE + 1] = {
+static const guint shifted_keycodes[AKEYCODE_BUTTON_MODE + 1] = {
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_UNKNOWN         = 0, */
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_SOFT_LEFT       = 1, */
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_SOFT_RIGHT      = 2, */
@@ -254,7 +254,7 @@ static guint shifted_keycodes[AKEYCODE_BUTTON_MODE + 1] = {
   CLUTTER_KEY_VoidSymbol /* AKEYCODE_BUTTON_MODE     = 110, */
 };
 
-static guint alted_keycodes[AKEYCODE_BUTTON_MODE + 1] = {
+static const guint alted_keycodes[AKEYCODE_BUTTON_MODE + 1] = {
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_UNKNOWN         = 0, */
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_SOFT_LEFT       = 1, */
   CLUTTER_KEY_VoidSymbol, /* AKEYCODE_SOFT_RIGHT      = 2, */



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