Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/bin


Modified Files:
        ecore_evas_test_bg.c 


Log Message:


pass make distcheck.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/bin/ecore_evas_test_bg.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ecore_evas_test_bg.c        31 Jul 2006 04:13:51 -0000      1.8
+++ ecore_evas_test_bg.c        9 Oct 2006 15:40:58 -0000       1.9
@@ -20,6 +20,7 @@
 Evas_Object *o_bg = NULL;
 
 static int bg_animate_obj_timer(void *data);
+static void bg_cb_key_up(void *data, Evas *e, Evas_Object *obj, void 
*event_info);
 static void bg_cb_key_down(void *data, Evas *e, Evas_Object *obj, void 
*event_info);
 
 void
@@ -42,6 +43,7 @@
    evas_object_resize(o, 240, 320);
    evas_object_layer_set(o, -1000000);
    evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN, bg_cb_key_down, 
ee);
+   evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_UP, bg_cb_key_up, ee);
    evas_object_focus_set(o, 1);
    evas_object_show(o);
    o_bg_rect = o;
@@ -286,6 +288,7 @@
    Evas_Event_Key_Down *ev;
    
    ev = event_info;
+   printf("DOWN %s\n", ev->keyname);
    if (!strcmp(ev->keyname, "Escape")) ecore_main_loop_quit();
    if (!strcmp(ev->keyname, "q")) ecore_main_loop_quit();
    if (!strcmp(ev->keyname, "Q")) ecore_main_loop_quit();
@@ -439,3 +442,12 @@
      }
 }
 #endif
+
+static void
+bg_cb_key_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
+{
+   Evas_Event_Key_Up *ev;
+   
+   ev = event_info;
+   printf("UP %s\n", ev->keyname);
+}



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to