[gnome-games] aisleriot: Don't use the hardware keys on maemo5



commit 46e873f5b85252c7ec6bb3c1a48175484275e854
Author: Christian Persch <chpe gnome org>
Date:   Fri Jan 22 18:33:44 2010 +0100

    aisleriot: Don't use the hardware keys on maemo5
    
    The maemo5 device (N900) doesn't have these extra hardware keys, so
    don't redefine the accels there. It does have a (slide-out) keyboard, so
    using the regular accels should work fine, if a bit inconvenient.

 aisleriot/window.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 8aed457..f853cbd 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -2180,9 +2180,17 @@ aisleriot_window_state_event (GtkWidget *widget,
 #ifdef HAVE_HILDON
 /* We never show tooltips, no need to put them into the binary */
 #define ACTION_TOOLTIP(string)  (NULL)
-#define ACTION_ACCEL(string1,string2) (string2)
 #else
 #define ACTION_TOOLTIP(string)  (string)
+#endif
+
+/* The maemo5 device (N900) doesn't have these extra hardware keys,
+ * so we only re-define the accels for maemo[34]. The N900 does have
+ * a slide-out keyboard, so using the regular accels should work fine.
+ */
+#if defined(HAVE_HILDON) && (defined(HAVE_MAEMO_3) || defined(HAVE_MAEMO_4))
+#define ACTION_ACCEL(string1,string2) (string2)
+#else
 #define ACTION_ACCEL(string1,string2) (string1)
 #endif
 



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