Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/pager
Modified Files:
e_mod_main.c
Log Message:
Let the user decide the object for a drag.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -3 -r1.89 -r1.90
--- e_mod_main.c 10 May 2005 18:15:16 -0000 1.89
+++ e_mod_main.c 11 May 2005 06:30:57 -0000 1.90
@@ -62,7 +62,7 @@
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_drop_cb(void *data, const char *type, void *drop);
+static void _pager_cb_drop(void *data, const char *type, void *drop);
static int _pager_count;
@@ -342,7 +342,7 @@
evas_object_show(o);
face->drop_handler = e_drop_handler_add(face,
- NULL, NULL, NULL, _pager_drop_cb,
+ NULL, NULL, NULL, _pager_cb_drop,
"enlightenment/border",
face->fx, face->fy, face->fw,
face->fh);
@@ -717,10 +717,11 @@
face = data;
e_gadman_client_geometry_get(face->gmc, &x, &y, &w, &h);
- face->drop_handler->x = face->fx = x;
- face->drop_handler->y = face->fy = y;
- face->drop_handler->w = face->fw = w;
- face->drop_handler->h = face->fh = h;
+ face->fx = x;
+ face->fy = y;
+ face->fw = w;
+ face->fh = h;
+ e_drop_handler_geometry_set(face->drop_handler, x, y, w, h);
switch (change)
{
case E_GADMAN_CHANGE_MOVE_RESIZE:
@@ -1365,7 +1366,7 @@
}
static void
-_pager_drop_cb(void *data, const char *type, void *event_info)
+_pager_cb_drop(void *data, const char *type, void *event_info)
{
E_Event_Dnd_Drop *ev;
Pager_Face *face;
@@ -1377,6 +1378,7 @@
ev = event_info;
face = data;
+ /* FIXME, check if the pager module has border */
w = face->fw / (double) face->xnum;
h = face->fh / (double) face->ynum;
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs