Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : apps/elitaire

Dir     : e17/apps/elitaire/src


Modified Files:
        edje_frontend_gui.cpp 


Log Message:
new game on F2

===================================================================
RCS file: /cvs/e/e17/apps/elitaire/src/edje_frontend_gui.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- edje_frontend_gui.cpp       26 Jun 2007 20:13:01 -0000      1.5
+++ edje_frontend_gui.cpp       28 Jun 2007 23:43:21 -0000      1.6
@@ -576,18 +576,20 @@
         eef->key.ctrl_down = true;
         return;
     }
-    if (!strcmp(ev->key, "Alt_L")) {
+    else if (!strcmp(ev->key, "Alt_L")) {
         eef->key.alt_down = true;
         return;
     }
+    else if (!strcmp(ev->key, "F2"))
+        edje_object_signal_emit(eef->gui, "new_game", "");
 
     if (eef->key.ctrl_down && !eef->key.alt_down) {
         if (!strcmp(ev->key, "z")) 
-           edje_object_signal_emit(eef->gui, "undo", "");
+            edje_object_signal_emit(eef->gui, "undo", "");
         else if (!strcmp(ev->key, "r")) 
-           edje_object_signal_emit(eef->gui, "restart", "");
+            edje_object_signal_emit(eef->gui, "restart", "");
         else if (!strcmp(ev->key, "n")) 
-           edje_object_signal_emit(eef->gui, "new_game", "");
+            edje_object_signal_emit(eef->gui, "new_game", "");
         else if (!strcmp(ev->key, "a")) {
             if (ecore_evas_alpha_get(eef->ee)) {
                 ecore_evas_alpha_set(eef->ee, 0);
@@ -599,7 +601,6 @@
             }
         }
     }
-    
 }
 
 static void _key_up_cb(void *data, Evas * e, Evas_Object * obj, 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to