Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/pager Modified Files: e_mod_main.c e_mod_main.h Log Message: Some cleanup and beginning of internal dnd in E. You can drag the icon from a window to the pager and get a nice message :) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.c,v retrieving revision 1.81 retrieving revision 1.82 diff -u -3 -r1.81 -r1.82 --- e_mod_main.c 23 Apr 2005 05:16:25 -0000 1.81 +++ e_mod_main.c 23 Apr 2005 13:13:57 -0000 1.82 @@ -62,6 +62,8 @@ static void _pager_desk_cb_intercept_move(void *data, Evas_Object *o, Evas_Coord x, Evas_Coord y); static void _pager_desk_cb_intercept_resize(void *data, Evas_Object *o, Evas_Coord w, Evas_Coord h); +static void _pager_dnd_cb(void *data, const char *type, void *drop); + static int _pager_count; static E_Config_DD *_conf_edd; @@ -338,6 +340,9 @@ e_table_homogenous_set(o, 1); edje_object_part_swallow(face->pager_object, "items", face->table_object); evas_object_show(o); + + face->dnd_handler = e_dnd_handler_add(face, _pager_dnd_cb, "enlightenment/border", + face->fx, face->fy, face->fw, face->fh); face->gmc = e_gadman_client_new(zone->container->gadman); _pager_face_zone_set(face, zone); @@ -549,6 +554,7 @@ if (pw) pd->wins = evas_list_append(pd->wins, pw); } + return pd; } @@ -709,10 +715,10 @@ face = data; e_gadman_client_geometry_get(face->gmc, &x, &y, &w, &h); - face->fx = x; - face->fy = y; - face->fw = w; - face->fh = h; + face->dnd_handler->x = face->fx = x; + face->dnd_handler->y = face->fy = y; + face->dnd_handler->w = face->fw = w; + face->dnd_handler->h = face->fh = h; switch (change) { case E_GADMAN_CHANGE_MOVE_RESIZE: @@ -1355,3 +1361,9 @@ evas_object_resize(o, w, h); evas_object_resize(desk->event_object, w, h); } + +static void +_pager_dnd_cb(void *data, const char *type, void *drop) +{ + printf("We have a drop!\n"); +} =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- e_mod_main.h 12 Apr 2005 03:34:28 -0000 1.21 +++ e_mod_main.h 23 Apr 2005 13:13:57 -0000 1.22 @@ -74,6 +74,8 @@ Ecore_Event_Handler *ev_handler_zone_desk_count_set; Ecore_Event_Handler *ev_handler_desk_show; Ecore_Event_Handler *ev_handler_container_resize; + + E_DND_Handler *dnd_handler; }; struct _Pager_Desk ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs